Author vstinner
Recipients brett.cannon, vstinner
Date 2016-02-05.09:15:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
test_regrtest creates temporary test files called in Lib/test/. The problem is that some tests like test___all__ and test_zipfile haves test relying on the list of Lib/test/test_*.py.

When tests are run in parallel, test_regrtest can creates temporary files, test_zipfile sees them, test_regrtest removes them, and then test_zipfiles fails.

The best would be to write these temporary files into a temporary directory, but I failed to fix Lib/test/ to load tests from a different directory. In theory, Python 3 supports packages with files splitted into multiple directories, in practice it doesn't seem to work :-p

Maybe test_regrtest should use a test submodule like Lib/test/temp_regrtest/ ?

test_regrtest started to create temporary files since issue #25220. (Other changes to test_regrtest: issues #18174, #22806, #25260, #25306,  #25369, #25373, #25694).

ERROR: test_all (test.test___all__.AllTest)
Traceback (most recent call last):
  File "/home/haypo/prog/python/default/Lib/test/", line 102, in test_all
    with open(path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/haypo/prog/python/default/Lib/test/'

Date User Action Args
2016-02-05 09:15:07vstinnersetrecipients: + vstinner, brett.cannon
2016-02-05 09:15:07vstinnersetmessageid: <>
2016-02-05 09:15:07vstinnerlinkissue26295 messages
2016-02-05 09:15:06vstinnercreate