mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Merge.
This commit is contained in:
commit
a35a128acc
3 changed files with 5 additions and 1 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue