mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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
|
@ -17,7 +17,6 @@ from django.test import (
|
|||
from django.test.client import RedirectCycleError, RequestFactory, encode_file
|
||||
from django.test.utils import ContextList, str_prefix
|
||||
from django.urls import NoReverseMatch, reverse
|
||||
from django.utils._os import upath
|
||||
from django.utils.translation import ugettext_lazy
|
||||
|
||||
from .models import CustomUser
|
||||
|
@ -874,7 +873,7 @@ class TemplateExceptionTests(SimpleTestCase):
|
|||
|
||||
@override_settings(TEMPLATES=[{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [os.path.join(os.path.dirname(upath(__file__)), 'bad_templates')],
|
||||
'DIRS': [os.path.join(os.path.dirname(__file__), 'bad_templates')],
|
||||
}])
|
||||
def test_bad_404_template(self):
|
||||
"Errors found when rendering 404 error templates are re-raised"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue