Skip to content

Commit

Permalink
Prevent warning "test altered the execution environment"
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Feb 11, 2022
1 parent 63e712d commit d233dd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/test/test_asyncio/test_taskgroups.py
Expand Up @@ -23,6 +23,11 @@
import unittest


# To prevent a warning "test altered the execution environment"
def tearDownModule():
asyncio.set_event_loop_policy(None)


class MyExc(Exception):
pass

Expand Down

0 comments on commit d233dd1

Please sign in to comment.