mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
Fix lib/test/__main__.py to work even outside a Python build.
This commit is contained in:
parent
ee4a5e0ca8
commit
97cbb76ee3
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ import sysconfig
|
||||||
from test import support
|
from test import support
|
||||||
from test import regrtest
|
from test import regrtest
|
||||||
|
|
||||||
|
TEMPDIR = regrtest.TEMPDIR
|
||||||
|
|
||||||
# findtestdir() gets the dirname out of __file__, so we have to make it
|
# findtestdir() gets the dirname out of __file__, so we have to make it
|
||||||
# absolute before changing the working directory.
|
# absolute before changing the working directory.
|
||||||
# For example __file__ may be relative when running trace or profile.
|
# For example __file__ may be relative when running trace or profile.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue