Commit 0fe9070d authored by Ross Lagerwall's avatar Ross Lagerwall

Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.

Patch by Ben Hayden.
parent 8fa944a7
...@@ -874,6 +874,7 @@ class ProcessTestCase(BaseTestCase): ...@@ -874,6 +874,7 @@ class ProcessTestCase(BaseTestCase):
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
bufsize=0) bufsize=0)
f = p.stdout f = p.stdout
self.addCleanup(f.close)
try: try:
self.assertEqual(f.read(4), b"appl") self.assertEqual(f.read(4), b"appl")
self.assertIn(f, select.select([f], [], [], 0.0)[0]) self.assertIn(f, select.select([f], [], [], 0.0)[0])
......
...@@ -325,6 +325,7 @@ Jason Harper ...@@ -325,6 +325,7 @@ Jason Harper
Larry Hastings Larry Hastings
Shane Hathaway Shane Hathaway
Rycharde Hawkes Rycharde Hawkes
Ben Hayden
Jochen Hayek Jochen Hayek
Christian Heimes Christian Heimes
Thomas Heller Thomas Heller
......
...@@ -48,6 +48,9 @@ Core and Builtins ...@@ -48,6 +48,9 @@ Core and Builtins
Library Library
------- -------
- Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.
Patch by Ben Hayden.
- Issue #5537: Fix time2isoz() and time2netscape() functions of - Issue #5537: Fix time2isoz() and time2netscape() functions of
httplib.cookiejar for expiration year greater than 2038 on 32-bit systems. httplib.cookiejar for expiration year greater than 2038 on 32-bit systems.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment