mirror of
https://github.com/python/cpython.git
synced 2025-10-12 18:02:39 +00:00
Fix test_openpty.
This commit is contained in:
parent
93f3910dca
commit
dc089b6d07
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ class OpenptyTest(unittest.TestCase):
|
||||||
if not os.isatty(slave):
|
if not os.isatty(slave):
|
||||||
self.fail("Slave-end of pty is not a terminal.")
|
self.fail("Slave-end of pty is not a terminal.")
|
||||||
|
|
||||||
os.write(slave, 'Ping!')
|
os.write(slave, b'Ping!')
|
||||||
self.assertEqual(os.read(master, 1024), 'Ping!')
|
self.assertEqual(os.read(master, 1024), b'Ping!')
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
run_unittest(OpenptyTest)
|
run_unittest(OpenptyTest)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue