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

Side by Side Diff: Lib/test/test_pipes.py

Issue 23670: Modifications to support iOS as a development platform
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:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_pep277.py ('k') | Lib/test/test_platform.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import pipes 1 import pipes
2 import os 2 import os
3 import string 3 import string
4 import sys
4 import unittest 5 import unittest
5 from test.support import TESTFN, run_unittest, unlink, reap_children 6 from test.support import TESTFN, run_unittest, unlink, reap_children
6 7
7 if os.name != 'posix': 8 if os.name != 'posix':
8 raise unittest.SkipTest('pipes module only works on posix') 9 raise unittest.SkipTest('pipes module only works on posix')
10 if sys.platform == 'ios':
11 raise unittest.SkipTest('pipes tests cannot run on iOS')
9 12
10 TESTFN2 = TESTFN + "2" 13 TESTFN2 = TESTFN + "2"
11 14
12 # tr a-z A-Z is not portable, so make the ranges explicit 15 # tr a-z A-Z is not portable, so make the ranges explicit
13 s_command = 'tr %s %s' % (string.ascii_lowercase, string.ascii_uppercase) 16 s_command = 'tr %s %s' % (string.ascii_lowercase, string.ascii_uppercase)
14 17
15 class SimplePipeTests(unittest.TestCase): 18 class SimplePipeTests(unittest.TestCase):
16 def tearDown(self): 19 def tearDown(self):
17 for f in (TESTFN, TESTFN2): 20 for f in (TESTFN, TESTFN2):
18 unlink(f) 21 unlink(f)
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 self.assertEqual(t.steps, u.steps) 190 self.assertEqual(t.steps, u.steps)
188 self.assertNotEqual(id(t.steps), id(u.steps)) 191 self.assertNotEqual(id(t.steps), id(u.steps))
189 self.assertEqual(t.debugging, u.debugging) 192 self.assertEqual(t.debugging, u.debugging)
190 193
191 def test_main(): 194 def test_main():
192 run_unittest(SimplePipeTests) 195 run_unittest(SimplePipeTests)
193 reap_children() 196 reap_children()
194 197
195 if __name__ == "__main__": 198 if __name__ == "__main__":
196 test_main() 199 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_pep277.py ('k') | Lib/test/test_platform.py » ('j') | no next file with comments »

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