Skip to content
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...
2 parents 21189cb + af3321a commit 4526b67fe43b7240747a6a553d39045f126a9af8 @aaugustin aaugustin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/admin_scripts/
2 tests/admin_scripts/
@@ -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):
open(os.path.join(test_dir, ''), 'w').close()

0 comments on commit 4526b67

Please sign in to comment.
Something went wrong with that request. Please try again.