mirror of
https://github.com/django/django.git
synced 2025-08-30 15:27:40 +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
|
@ -3,7 +3,6 @@ from datetime import datetime
|
|||
|
||||
from django.test import SimpleTestCase
|
||||
from django.utils import html, safestring
|
||||
from django.utils._os import upath
|
||||
from django.utils.encoding import force_text
|
||||
from django.utils.functional import lazystr
|
||||
|
||||
|
@ -98,7 +97,7 @@ class TestUtilsHtml(SimpleTestCase):
|
|||
|
||||
# Test with more lengthy content (also catching performance regressions)
|
||||
for filename in ('strip_tags1.html', 'strip_tags2.txt'):
|
||||
path = os.path.join(os.path.dirname(upath(__file__)), 'files', filename)
|
||||
path = os.path.join(os.path.dirname(__file__), 'files', filename)
|
||||
with open(path, 'r') as fp:
|
||||
content = force_text(fp.read())
|
||||
start = datetime.now()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue