summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_openpty.py
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2013-06-10 15:31:39 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2013-06-10 15:31:39 (GMT)
commita35a128accfd2b9d07029387b97995f4854bca12 (patch)
tree4de2efca771e0668d24658ffad4f323042d5ea15 /Lib/test/test_openpty.py
parentcac17b4d78fdc8ad617e59281160749c91665fb3 (diff)
parent0e547b66dc206e46b69b91790aa73010290f4fcb (diff)
downloadcpython-a35a128accfd2b9d07029387b97995f4854bca12.zip
cpython-a35a128accfd2b9d07029387b97995f4854bca12.tar.gz
cpython-a35a128accfd2b9d07029387b97995f4854bca12.tar.bz2
Merge.
Diffstat (limited to 'Lib/test/test_openpty.py')
-rw-r--r--Lib/test/test_openpty.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_openpty.py b/Lib/test/test_openpty.py
index 8713d34..4785107 100644
--- a/Lib/test/test_openpty.py
+++ b/Lib/test/test_openpty.py
@@ -10,6 +10,8 @@ if not hasattr(os, "openpty"):
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.")