mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +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
|
@ -31,7 +31,6 @@ from django.test import (
|
|||
from django.test.utils import override_script_prefix, patch_logger
|
||||
from django.urls import NoReverseMatch, resolve, reverse
|
||||
from django.utils import formats, translation
|
||||
from django.utils._os import upath
|
||||
from django.utils.cache import get_max_age
|
||||
from django.utils.deprecation import RemovedInDjango21Warning
|
||||
from django.utils.encoding import force_bytes, force_text, iri_to_uri
|
||||
|
@ -919,8 +918,8 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
|
|||
# Put this app's and the shared tests templates dirs in DIRS to take precedence
|
||||
# over the admin's templates dir.
|
||||
'DIRS': [
|
||||
os.path.join(os.path.dirname(upath(__file__)), 'templates'),
|
||||
os.path.join(os.path.dirname(os.path.dirname(upath(__file__))), 'templates'),
|
||||
os.path.join(os.path.dirname(__file__), 'templates'),
|
||||
os.path.join(os.path.dirname(os.path.dirname(__file__)), 'templates'),
|
||||
],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue