summaryrefslogtreecommitdiff
path: root/tests/test_subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-15 14:23:32 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-15 14:23:32 +0100
commite70e384fcebeb63a4fc0e690e47b4d24437a5c95 (patch)
treec6df21a9782454335fb4d4d812a32b0d063b1997 /tests/test_subprocess.py
parent180ea50b9a83de00713f8a4ecd1a91ed080968ac (diff)
downloadtrollius-e70e384fcebeb63a4fc0e690e47b4d24437a5c95.tar.gz
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
Diffstat (limited to 'tests/test_subprocess.py')
-rw-r--r--tests/test_subprocess.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py
index b2f1b95..a4c1f69 100644
--- a/tests/test_subprocess.py
+++ b/tests/test_subprocess.py
@@ -286,6 +286,7 @@ class SubprocessMixin:
# "Exception during subprocess creation, kill the subprocess"
with test_utils.disable_logger():
self.loop.run_until_complete(cancel_make_transport())
+ test_utils.run_briefly(self.loop)
if sys.platform != 'win32':