summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2013-02-27 23:23:27 +0100
committerŁukasz Langa <lukasz@langa.pl>2013-02-27 23:33:47 +0100
commitaf3321a1e80eece49bd934b4f03f9c4ddd702767 (patch)
treee3c6d88f2b40e07d8fc5a73d42dd88c511a20407 /tests/admin_scripts
parent21189cb80b9960940008a52cdc0de86145176497 (diff)
use the real path to fix OS X /var/folders vs. /private/var/folders mismatch
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 64c0105539..42595982d9 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -26,7 +26,7 @@ from django.utils.six import StringIO
from django.test import LiveServerTestCase
-test_dir = os.path.join(os.environ['DJANGO_TEST_TEMP_DIR'], 'test_project')
+test_dir = os.path.realpath(os.path.join(os.environ['DJANGO_TEST_TEMP_DIR'], 'test_project'))
if not os.path.exists(test_dir):
os.mkdir(test_dir)
open(os.path.join(test_dir, '__init__.py'), 'w').close()