1
0
mirror of https://github.com/django/django.git synced 2025-03-24 08:10:45 +00:00

use the real path to fix OS X /var/folders vs. /private/var/folders mismatch

This commit is contained in:
Łukasz Langa 2013-02-27 23:23:27 +01:00
parent 21189cb80b
commit af3321a1e8

View File

@ -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()