mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
This commit is contained in:
parent
ec4c1d6717
commit
4e729feaa6
64 changed files with 108 additions and 178 deletions
|
@ -7,7 +7,6 @@ from zipimport import zipimporter
|
|||
|
||||
from django.test import SimpleTestCase, TestCase, modify_settings
|
||||
from django.test.utils import extend_sys_path
|
||||
from django.utils._os import upath
|
||||
from django.utils.module_loading import (
|
||||
autodiscover_modules, import_string, module_has_submodule,
|
||||
)
|
||||
|
@ -58,7 +57,7 @@ class DefaultLoader(unittest.TestCase):
|
|||
|
||||
class EggLoader(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.egg_dir = '%s/eggs' % os.path.dirname(upath(__file__))
|
||||
self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
|
||||
|
||||
def tearDown(self):
|
||||
sys.path_importer_cache.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue