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

Side by Side Diff: Lib/test/libregrtest/main.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/sysconfig.py ('k') | Lib/test/libregrtest/runtest_mp.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 faulthandler 1 import faulthandler
2 import os 2 import os
3 import platform 3 import platform
4 import random 4 import random
5 import re 5 import re
6 import sys 6 import sys
7 import sysconfig 7 import sysconfig
8 import tempfile 8 import tempfile
9 import textwrap 9 import textwrap
10 from test.libregrtest.cmdline import _parse_args 10 from test.libregrtest.cmdline import _parse_args
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 # the tests. The name of the dir includes the pid to allow parallel 445 # the tests. The name of the dir includes the pid to allow parallel
446 # testing (see the -j option). 446 # testing (see the -j option).
447 test_cwd = 'test_python_{}'.format(os.getpid()) 447 test_cwd = 'test_python_{}'.format(os.getpid())
448 test_cwd = os.path.join(TEMPDIR, test_cwd) 448 test_cwd = os.path.join(TEMPDIR, test_cwd)
449 449
450 # Run the tests in a context manager that temporarily changes the CWD to a 450 # Run the tests in a context manager that temporarily changes the CWD to a
451 # temporary and writable directory. If it's not possible to create or 451 # temporary and writable directory. If it's not possible to create or
452 # change the CWD, the original CWD will be used. The original CWD is 452 # change the CWD, the original CWD will be used. The original CWD is
453 # available from support.SAVEDCWD. 453 # available from support.SAVEDCWD.
454 with support.temp_cwd(test_cwd, quiet=True): 454 with support.temp_cwd(test_cwd, quiet=True):
455 main() 455 result = main()
456
457 return result
OLDNEW
« no previous file with comments | « Lib/sysconfig.py ('k') | Lib/test/libregrtest/runtest_mp.py » ('j') | no next file with comments »

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