Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(105981)

Unified Diff: Lib/test/test_pty.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_posix.py ('k') | Lib/test/test_quopri.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_pty.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_pty.py Wed Mar 02 00:01:35 2016 +0000
@@ -106,17 +106,17 @@ class PtyTest(unittest.TestCase):
os.write(slave_fd, TEST_STRING_2[:5])
os.write(slave_fd, TEST_STRING_2[5:])
s2 = os.read(master_fd, 1024)
self.assertEqual(b'For my pet fish, Eric.\n', normalize_output(s2))
os.close(slave_fd)
os.close(master_fd)
-
+ @unittest.skipUnless(hasattr(os, 'fork'), "test requires os.fork()")
def test_fork(self):
debug("calling pty.fork()")
pid, master_fd = pty.fork()
if pid == pty.CHILD:
# stdout should be connected to a tty.
if not os.isatty(1):
debug("Child's fd 1 is not a tty?!")
os._exit(3)
« no previous file with comments | « Lib/test/test_posix.py ('k') | Lib/test/test_quopri.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+