Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running

regression tests in parallel, shortening the total runtime.
This commit is contained in:
Antoine Pitrou 2009-05-31 14:20:14 +00:00
parent d198b76d36
commit 4698d9928e
4 changed files with 153 additions and 59 deletions

View file

@ -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: