[Python-checkins] cpython (3.4): asyncio: Fix ResourceWarning in test_subprocess.test_proc_exit()
victor.stinner
python-checkins at python.org
Fri Jan 30 00:13:43 CET 2015
https://hg.python.org/cpython/rev/89cde9b1a853
changeset: 94381:89cde9b1a853
branch: 3.4
parent: 94379:a5efd5021ca1
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Jan 30 00:11:42 2015 +0100
summary:
asyncio: Fix ResourceWarning in test_subprocess.test_proc_exit()
files:
Lib/test/test_asyncio/test_subprocess.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -87,6 +87,8 @@
self.assertRaises(ProcessLookupError, transport.terminate)
self.assertRaises(ProcessLookupError, transport.kill)
+ transport.close()
+
class SubprocessMixin:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list