Skip to content

Commit a8ffeee

Browse files
committed
Make close_loop an instance method so it can call self.fail()
1 parent 0d802c2 commit a8ffeee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_asyncio/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,7 @@ def get_function_source(func):
538538

539539

540540
class TestCase(unittest.TestCase):
541-
@staticmethod
542-
def close_loop(loop):
541+
def close_loop(self, loop):
543542
if loop._default_executor is not None:
544543
if not loop.is_closed():
545544
loop.run_until_complete(loop.shutdown_default_executor())

0 commit comments

Comments
 (0)