bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)

This commit is contained in:
Brett Cannon 2018-06-01 20:34:09 -07:00 committed by GitHub
parent de6516264e
commit 8425de4147
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 98 additions and 2 deletions

View file

@ -23,6 +23,11 @@ PROGRAM_CAT = [
'data = sys.stdin.buffer.read()',
'sys.stdout.buffer.write(data)'))]
def tearDownModule():
asyncio.set_event_loop_policy(None)
class TestSubprocessTransport(base_subprocess.BaseSubprocessTransport):
def _start(self, *args, **kwargs):
self._proc = mock.Mock()