diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-31 14:20:14 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-31 14:20:14 (GMT) |
commit | 4698d9928ef1547e86a3f692e0c8d77e3f5e869c (patch) | |
tree | 40324de40cde2f7b5c9ec762f948f40c9bda8f0b /Lib/test/test_support.py | |
parent | d198b76d3602aeeb985b8363d6be21602731d367 (diff) | |
download | cpython-4698d9928ef1547e86a3f692e0c8d77e3f5e869c.zip cpython-4698d9928ef1547e86a3f692e0c8d77e3f5e869c.tar.gz cpython-4698d9928ef1547e86a3f692e0c8d77e3f5e869c.tar.bz2 |
Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running
regression tests in parallel, shortening the total runtime.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 52dd16e..8656189 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -378,6 +378,10 @@ else: 'Unicode filename tests may not be effective' \ % TESTFN_UNICODE_UNENCODEABLE +# Disambiguate TESTFN for parallel testing, while letting it remain a valid +# module name. +TESTFN = "{0}_{1}_tmp".format(TESTFN, os.getpid()) + # Make sure we can write to TESTFN, try in /tmp if we can't fp = None try: |