mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #19357 -- Allow non-ASCII chars in filesystem paths
Thanks kujiu for the report and Aymeric Augustin for the review.
This commit is contained in:
		| @@ -8,6 +8,7 @@ from django.core.management import call_command | ||||
| from django.db.models.loading import cache, load_app | ||||
| from django.test import TestCase, TransactionTestCase | ||||
| from django.test.utils import override_settings | ||||
| from django.utils._os import upath | ||||
|  | ||||
| from .models import (ConcreteModel, ConcreteModelSubclass, | ||||
|     ConcreteModelSubclassProxy) | ||||
| @@ -23,7 +24,7 @@ class ProxyModelInheritanceTests(TransactionTestCase): | ||||
|  | ||||
|     def setUp(self): | ||||
|         self.old_sys_path = sys.path[:] | ||||
|         sys.path.append(os.path.dirname(os.path.abspath(__file__))) | ||||
|         sys.path.append(os.path.dirname(os.path.abspath(upath(__file__)))) | ||||
|         for app in settings.INSTALLED_APPS: | ||||
|             load_app(app) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user