mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user