summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2013-02-26 15:20:37 +0100
committerFlorian Apolloner <florian@apolloner.eu>2013-02-26 15:20:37 +0100
commit0dc7ff6b7abc72d9909d93cd05e33f377ba6806c (patch)
tree6ae31a500de9daecfac0109e1cd1b076efd1acdc
parent28e545c4b3c18fd1d3641b1194bf53699a7c868a (diff)
Ensured that we have an absolute path to RUNTESTS_DIR.
This is needed to make 'python runtests.py' work, otherwise only 'python ./runtests.py' would work.
-rwxr-xr-xtests/runtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 055161bd9b..b0d942f1bb 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -13,7 +13,7 @@ CONTRIB_DIR_NAME = 'django.contrib'
TEST_TEMPLATE_DIR = 'templates'
-RUNTESTS_DIR = os.path.dirname(upath(__file__))
+RUNTESTS_DIR = os.path.abspath(os.path.dirname(upath(__file__)))
CONTRIB_DIR = os.path.dirname(upath(contrib.__file__))
TEMP_DIR = tempfile.mkdtemp(prefix='django_')
os.environ['DJANGO_TEST_TEMP_DIR'] = TEMP_DIR