mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[1.5.x] Fixed #19357 -- Allow non-ASCII chars in filesystem paths
Thanks kujiu for the report and Aymeric Augustin for the review.
Backport of c91667338 from master.
This commit is contained in:
@@ -6,6 +6,7 @@ from zipimport import zipimporter
|
||||
from django.utils import unittest
|
||||
from django.utils.importlib import import_module
|
||||
from django.utils.module_loading import module_has_submodule
|
||||
from django.utils._os import upath
|
||||
|
||||
|
||||
class DefaultLoader(unittest.TestCase):
|
||||
@@ -50,7 +51,7 @@ class DefaultLoader(unittest.TestCase):
|
||||
class EggLoader(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.old_path = sys.path[:]
|
||||
self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
|
||||
self.egg_dir = '%s/eggs' % os.path.dirname(upath(__file__))
|
||||
|
||||
def tearDown(self):
|
||||
sys.path = self.old_path
|
||||
|
||||
Reference in New Issue
Block a user