diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-12-03 10:59:15 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-12-03 10:59:15 (GMT) |
commit | 97cbb76ee31b4b91fd908576bbc3354ceab41cfc (patch) | |
tree | 6ace148b5d627e36fe60ecf3d868d5fe1e0bf6a4 /Lib/test | |
parent | ee4a5e0ca892e44a85b95c75b33524ea941768fe (diff) | |
download | cpython-97cbb76ee31b4b91fd908576bbc3354ceab41cfc.zip cpython-97cbb76ee31b4b91fd908576bbc3354ceab41cfc.tar.gz cpython-97cbb76ee31b4b91fd908576bbc3354ceab41cfc.tar.bz2 |
Fix lib/test/__main__.py to work even outside a Python build.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/__main__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/__main__.py b/Lib/test/__main__.py index 251ac7c..180072a 100644 --- a/Lib/test/__main__.py +++ b/Lib/test/__main__.py @@ -5,6 +5,8 @@ import sysconfig from test import support from test import regrtest +TEMPDIR = regrtest.TEMPDIR + # findtestdir() gets the dirname out of __file__, so we have to make it # absolute before changing the working directory. # For example __file__ may be relative when running trace or profile. |