mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)
This commit is contained in:
parent
de6516264e
commit
8425de4147
26 changed files with 98 additions and 2 deletions
|
|
@ -667,6 +667,7 @@ class JumpTestCase(unittest.TestCase):
|
|||
with self.assertRaisesRegex(*error):
|
||||
asyncio.run(func(output))
|
||||
sys.settrace(None)
|
||||
asyncio.set_event_loop_policy(None)
|
||||
self.compare_jump_output(expected, output)
|
||||
|
||||
def jump_test(jumpFrom, jumpTo, expected, error=None, event='line'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue