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

Unified Diff: Lib/test/libregrtest/setup.py

Issue 26295: Random failures when running test suite in parallel (-m test -j0) caused by test_regrtest
Patch Set: Created 3 years, 11 months ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/__init__.py ('k') | Lib/test/test_regrtest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/libregrtest/setup.py Tue Mar 15 23:08:44 2016 +0100
+++ b/Lib/test/libregrtest/setup.py Tue Mar 15 23:21:00 2016 +0100
@@ -29,6 +29,9 @@ def setup_tests(ns):
replace_stdout()
support.record_original_stdout(sys.stdout)
+ if ns.testdir:
+ sys.path.insert(0, os.path.dirname(ns.testdir))
+
# Some times __path__ and __file__ are not absolute (e.g. while running from
# Lib/) and, if we change the CWD to run the tests in a temporary dir, some
# imports might fail. This affects only the modules imported before os.chdir().
« no previous file with comments | « Lib/test/__init__.py ('k') | Lib/test/test_regrtest.py » ('j') | no next file with comments »

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