commit | 045e4579928768c0c40ae174aaa3bec1a53dc431 | [log] [tgz] |
---|---|---|
author | Richard Oudkerk <shibturn@gmail.com> | Mon Jun 10 16:27:45 2013 +0100 |
committer | Richard Oudkerk <shibturn@gmail.com> | Mon Jun 10 16:27:45 2013 +0100 |
tree | a0eced1d868f205a6aef4b2c13868ea22271968b | |
parent | 0e6283e68a9d6035e68a91904f13733df512dbce [diff] [blame] |
Issue #18174: Fix fd leaks in tests.
diff --git a/Lib/test/test_openpty.py b/Lib/test/test_openpty.py index 20c4fe2..4b34b3a 100644 --- a/Lib/test/test_openpty.py +++ b/Lib/test/test_openpty.py
@@ -10,6 +10,8 @@ class OpenptyTest(unittest.TestCase): def test(self): master, slave = os.openpty() + self.addCleanup(os.close, master) + self.addCleanup(os.close, slave) if not os.isatty(slave): self.fail("Slave-end of pty is not a terminal.")