mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #24324 -- Fixed Python 2 test failures when path to Django source contains non-ASCII characters.
This commit is contained in:
parent
fa66ea7532
commit
307c0f299a
9 changed files with 31 additions and 23 deletions
|
@ -19,6 +19,7 @@ from django.db.migrations.writer import (
|
|||
)
|
||||
from django.test import SimpleTestCase, TestCase, ignore_warnings
|
||||
from django.utils import datetime_safe, six
|
||||
from django.utils._os import upath
|
||||
from django.utils.deconstruct import deconstructible
|
||||
from django.utils.timezone import FixedOffset, get_default_timezone, utc
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
@ -401,7 +402,7 @@ class WriterTests(TestCase):
|
|||
'migrations.migrations_test_apps.without_init_file',
|
||||
]
|
||||
|
||||
base_dir = os.path.dirname(os.path.dirname(__file__))
|
||||
base_dir = os.path.dirname(os.path.dirname(upath(__file__)))
|
||||
|
||||
for app in test_apps:
|
||||
with self.modify_settings(INSTALLED_APPS={'append': app}):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue