Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 4526b67fe43b7240747a6a553d39045f126a9af8 2 parents 21189cb + af3321a
@aaugustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/admin_scripts/tests.py
View
2  tests/admin_scripts/tests.py
@@ -26,7 +26,7 @@
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()
Please sign in to comment.
Something went wrong with that request. Please try again.