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

Delta Between Two Patch Sets: Lib/test/test_popen.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_poll.py ('k') | Lib/test/test_posix.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 """Basic tests for os.popen() 1 """Basic tests for os.popen()
2 2
3 Particularly useful for platforms that fake popen. 3 Particularly useful for platforms that fake popen.
4 """ 4 """
5 5
6 import unittest 6 import unittest
7 from test import support 7 from test import support
8 import os, sys 8 import os, sys
9 import subprocess 9 import subprocess
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 def test_iterating(self): 58 def test_iterating(self):
59 with os.popen("echo hello") as f: 59 with os.popen("echo hello") as f:
60 self.assertEqual(list(f), ["hello\n"]) 60 self.assertEqual(list(f), ["hello\n"])
61 61
62 def test_keywords(self): 62 def test_keywords(self):
63 with os.popen(cmd="exit 0", mode="w", buffering=-1): 63 with os.popen(cmd="exit 0", mode="w", buffering=-1):
64 pass 64 pass
65 65
66 if __name__ == "__main__": 66 if __name__ == "__main__":
67 unittest.main() 67 unittest.main()
LEFTRIGHT

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