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/httpwrappers | |
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/httpwrappers')
-rw-r--r-- | tests/httpwrappers/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index fe2ad1a216..612cbb45ef 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -16,7 +16,6 @@ from django.http import ( StreamingHttpResponse, parse_cookie, ) from django.test import SimpleTestCase -from django.utils._os import upath from django.utils.functional import lazystr @@ -634,7 +633,7 @@ class FileCloseTests(SimpleTestCase): request_finished.connect(close_old_connections) def test_response(self): - filename = os.path.join(os.path.dirname(upath(__file__)), 'abc.txt') + filename = os.path.join(os.path.dirname(__file__), 'abc.txt') # file isn't closed until we close the response. file1 = open(filename) @@ -652,7 +651,7 @@ class FileCloseTests(SimpleTestCase): self.assertTrue(file2.closed) def test_streaming_response(self): - filename = os.path.join(os.path.dirname(upath(__file__)), 'abc.txt') + filename = os.path.join(os.path.dirname(__file__), 'abc.txt') # file isn't closed until we close the response. file1 = open(filename) |