Skip to content

Commit 97cbb76

Browse files
author
Michael Foord
committed
Fix lib/test/__main__.py to work even outside a Python build.
1 parent ee4a5e0 commit 97cbb76

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from test import support
66
from test import regrtest
77

8+
TEMPDIR = regrtest.TEMPDIR
9+
810
# findtestdir() gets the dirname out of __file__, so we have to make it
911
# absolute before changing the working directory.
1012
# For example __file__ may be relative when running trace or profile.

0 commit comments

Comments
 (0)