mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
This commit is contained in:
parent
ec4c1d6717
commit
4e729feaa6
64 changed files with 108 additions and 178 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue