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

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

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 9 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_sundry.py ('k') | Lib/test/test_sys.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 unittest 1 import unittest
2 import sys 2 import sys
3 import os 3 import os
4 import subprocess 4 import subprocess
5 import shutil 5 import shutil
6 from copy import copy 6 from copy import copy
7 7
8 from test.support import (run_unittest, TESTFN, unlink, check_warnings, 8 from test.support import (run_unittest, TESTFN, unlink, check_warnings,
9 captured_stdout, skip_unless_symlink, change_cwd) 9 captured_stdout, skip_unless_symlink, change_cwd)
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 self.assertEqual(get_platform(), 'linux-i686') 228 self.assertEqual(get_platform(), 'linux-i686')
229 229
230 # XXX more platforms to tests here 230 # XXX more platforms to tests here
231 231
232 def test_get_config_h_filename(self): 232 def test_get_config_h_filename(self):
233 config_h = sysconfig.get_config_h_filename() 233 config_h = sysconfig.get_config_h_filename()
234 self.assertTrue(os.path.isfile(config_h), config_h) 234 self.assertTrue(os.path.isfile(config_h), config_h)
235 235
236 def test_get_scheme_names(self): 236 def test_get_scheme_names(self):
237 wanted = ('nt', 'nt_user', 'osx_framework_user', 237 wanted = ('ios', 'nt', 'nt_user', 'osx_framework_user',
238 'posix_home', 'posix_prefix', 'posix_user') 238 'posix_home', 'posix_prefix', 'posix_user')
239 self.assertEqual(get_scheme_names(), wanted) 239 self.assertEqual(get_scheme_names(), wanted)
240 240
241 @skip_unless_symlink 241 @skip_unless_symlink
242 @unittest.skipUnless(hasattr(subprocess, 'Popen'), "test requires subprocess .Popen()")
242 def test_symlink(self): 243 def test_symlink(self):
243 # On Windows, the EXE needs to know where pythonXY.dll is at so we have 244 # On Windows, the EXE needs to know where pythonXY.dll is at so we have
244 # to add the directory to the path. 245 # to add the directory to the path.
245 if sys.platform == "win32": 246 if sys.platform == "win32":
246 os.environ["PATH"] = "{};{}".format( 247 os.environ["PATH"] = "{};{}".format(
247 os.path.dirname(sys.executable), os.environ["PATH"]) 248 os.path.dirname(sys.executable), os.environ["PATH"])
248 249
249 # Issue 7880 250 # Issue 7880
250 def get(python): 251 def get(python):
251 cmd = [python, '-c', 252 cmd = [python, '-c',
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 'var5': 'dollar$5', 433 'var5': 'dollar$5',
433 'var6': '42/lib/python3.5/config-b42dollar$5-x86_64-linux-gnu', 434 'var6': '42/lib/python3.5/config-b42dollar$5-x86_64-linux-gnu',
434 }) 435 })
435 436
436 437
437 def test_main(): 438 def test_main():
438 run_unittest(TestSysConfig, MakefileTests) 439 run_unittest(TestSysConfig, MakefileTests)
439 440
440 if __name__ == "__main__": 441 if __name__ == "__main__":
441 test_main() 442 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_sundry.py ('k') | Lib/test/test_sys.py » ('j') | no next file with comments »

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