Skip to content

Commit 64bf295

Browse files
colesburyYhg1s
andauthored
Update Lib/test/support/__init__.py
Co-authored-by: T. Wouters <[email protected]>
1 parent 9df885a commit 64bf295

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/support/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,8 @@ def decorator(test_item):
386386
test_item.__unittest_thread_unsafe__why__ = reason
387387
return test_item
388388
if isinstance(reason, types.FunctionType):
389-
test_item = reason
390389
reason = ''
391-
return decorator(test_item)
390+
return decorator(reason)
392391
return decorator
393392

394393

0 commit comments

Comments
 (0)