From 97cbb76ee31b4b91fd908576bbc3354ceab41cfc Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Fri, 3 Dec 2010 10:59:15 +0000 Subject: [PATCH] Fix lib/test/__main__.py to work even outside a Python build. --- Lib/test/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/__main__.py b/Lib/test/__main__.py index 251ac7c4cb7..180072acdc7 100644 --- a/Lib/test/__main__.py +++ b/Lib/test/__main__.py @@ -5,6 +5,8 @@ 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.