summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-02-27 14:51:03 -0800
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-02-27 14:51:03 -0800
commit4526b67fe43b7240747a6a553d39045f126a9af8 (patch)
treee3c6d88f2b40e07d8fc5a73d42dd88c511a20407 /tests/admin_scripts
parent21189cb80b9960940008a52cdc0de86145176497 (diff)
parentaf3321a1e80eece49bd934b4f03f9c4ddd702767 (diff)
Merge pull request #864 from ambv/realmacosxtmp
Fixed two test failures when tmp dirs are below a symlink. This affects OS X where /var is a symlink to /private/var.
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()