From 4e729feaa647547f25debb1cb63dec989dc41a20 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 20 Jan 2017 08:01:02 -0500 Subject: Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage. These functions do nothing on Python 3. --- tests/utils_tests/test_html.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/utils_tests/test_html.py') diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 5ffccdae83..c2a64699cb 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -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() -- cgit v1.3