]> granicus.if.org Git - python/commit
asyncio: Close transports in tests
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Jan 2015 13:24:55 +0000 (14:24 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Jan 2015 13:24:55 +0000 (14:24 +0100)
commitab8848bc2a64930e0e9a2e56592bb692fb31d9e9
treefabea6e538acba5235e9614891c75bb9780843c8
parent4bf22e033e975f61c33752db5a3764dc0f7d0b03
asyncio: Close transports in tests

* Use test_utils.run_briefly() to execute pending calls to really close
  transports
* sslproto: mock also _SSLPipe.shutdown(), it's need to close the transport
* pipe test: the test doesn't close explicitly the PipeHandle, so ignore
  the warning instead
* test_popen: use the context manager ("with p:") to explicitly close pipes
Lib/test/test_asyncio/test_selector_events.py
Lib/test/test_asyncio/test_sslproto.py
Lib/test/test_asyncio/test_subprocess.py
Lib/test/test_asyncio/test_windows_utils.py