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:
@@ -17,7 +17,6 @@ from django.core.validators import (
|
||||
)
|
||||
from django.test import SimpleTestCase
|
||||
from django.test.utils import str_prefix
|
||||
from django.utils._os import upath
|
||||
|
||||
try:
|
||||
from PIL import Image # noqa
|
||||
@@ -263,7 +262,7 @@ TEST_DATA = [
|
||||
|
||||
|
||||
def create_path(filename):
|
||||
return os.path.abspath(os.path.join(os.path.dirname(upath(__file__)), filename))
|
||||
return os.path.abspath(os.path.join(os.path.dirname(__file__), filename))
|
||||
|
||||
|
||||
# Add valid and invalid URL tests.
|
||||
|
||||
Reference in New Issue
Block a user