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/file_storage | |
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/file_storage')
-rw-r--r-- | tests/file_storage/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index 7912eb7efa..d33ca67c33 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -24,7 +24,6 @@ from django.test import ( from django.test.utils import requires_tz_support from django.urls import NoReverseMatch, reverse_lazy from django.utils import timezone -from django.utils._os import upath from .models import Storage, temp_storage, temp_storage_location @@ -108,7 +107,7 @@ class FileStorageTests(SimpleTestCase): """ storage = self.storage_class(location='') self.assertEqual(storage.base_location, '') - self.assertEqual(storage.location, upath(os.getcwd())) + self.assertEqual(storage.location, os.getcwd()) def test_file_access_options(self): """ |