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/validators/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/validators') diff --git a/tests/validators/tests.py b/tests/validators/tests.py index 2f26efcaa5..124c2b1c68 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -17,7 +17,6 @@ from django.core.validators import ( ) from django.test import SimpleTestCase from django.test.utils import str_prefix -from django.utils._os import upath try: from PIL import Image # noqa @@ -263,7 +262,7 @@ TEST_DATA = [ def create_path(filename): - return os.path.abspath(os.path.join(os.path.dirname(upath(__file__)), filename)) + return os.path.abspath(os.path.join(os.path.dirname(__file__), filename)) # Add valid and invalid URL tests. -- cgit v1.3