8000 gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() by gvanrossum · Pull Request #110884 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() #110884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 27, 2023
Merged
Prev Previous commit
Next Next commit
Make close_loop an instance method so it can call self.fail()
  • Loading branch information
gvanrossum committed Oct 14, 2023
commit a8ffeee577bc677711c2cfb5ffaed38a0d455b99
3 changes: 1 addition & 2 deletions Lib/test/test_asyncio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,7 @@ def get_function_source(func):


class TestCase(unittest.TestCase):
@staticmethod
def close_loop(loop):
def close_loop(self, loop):
if loop._default_executor is not None:
if not loop.is_closed():
loop.run_until_complete(loop.shutdown_default_executor())
Expand Down
0