diff options
author | Tim Graham <timograham@gmail.com> | 2017-01-20 08:01:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 08:01:02 -0500 |
commit | 4e729feaa647547f25debb1cb63dec989dc41a20 (patch) | |
tree | 7c7a38c5961bf4daf98a8cb47dc74c769563ffcf /tests/servers | |
parent | ec4c1d6717da7a9d09d5b3ce84cccac819bb592c (diff) | |
download | django-4e729feaa647547f25debb1cb63dec989dc41a20.tar.gz |
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
Diffstat (limited to 'tests/servers')
-rw-r--r-- | tests/servers/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/servers/tests.py b/tests/servers/tests.py index 82c9bea493..d6d0392bcd 100644 --- a/tests/servers/tests.py +++ b/tests/servers/tests.py @@ -8,12 +8,11 @@ from urllib.error import HTTPError from urllib.request import urlopen from django.test import LiveServerTestCase, override_settings -from django.utils._os import upath from django.utils.http import urlencode from .models import Person -TEST_ROOT = os.path.dirname(upath(__file__)) +TEST_ROOT = os.path.dirname(__file__) TEST_SETTINGS = { 'MEDIA_URL': '/media/', 'MEDIA_ROOT': os.path.join(TEST_ROOT, 'media'), |