summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-20 08:01:02 -0500
committerGitHub <noreply@github.com>2017-01-20 08:01:02 -0500
commit4e729feaa647547f25debb1cb63dec989dc41a20 (patch)
tree7c7a38c5961bf4daf98a8cb47dc74c769563ffcf /tests/validators
parentec4c1d6717da7a9d09d5b3ce84cccac819bb592c (diff)
downloaddjango-4e729feaa647547f25debb1cb63dec989dc41a20.tar.gz
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
Diffstat (limited to 'tests/validators')
-rw-r--r--tests/validators/tests.py3
1 files changed, 1 insertions, 2 deletions
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.