summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_imagefield.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/model_fields/test_imagefield.py')
-rw-r--r--tests/model_fields/test_imagefield.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py
index 92985a99d9..96fa8c839b 100644
--- a/tests/model_fields/test_imagefield.py
+++ b/tests/model_fields/test_imagefield.py
@@ -7,7 +7,6 @@ from django.core.files import File
from django.core.files.images import ImageFile
from django.test import TestCase
from django.test.testcases import SerializeMixin
-from django.utils._os import upath
try:
from .models import Image
@@ -51,10 +50,10 @@ class ImageFieldTestMixin(SerializeMixin):
shutil.rmtree(temp_storage_dir)
os.mkdir(temp_storage_dir)
- file_path1 = os.path.join(os.path.dirname(upath(__file__)), "4x8.png")
+ file_path1 = os.path.join(os.path.dirname(__file__), '4x8.png')
self.file1 = self.File(open(file_path1, 'rb'), name='4x8.png')
- file_path2 = os.path.join(os.path.dirname(upath(__file__)), "8x4.png")
+ file_path2 = os.path.join(os.path.dirname(__file__), '8x4.png')
self.file2 = self.File(open(file_path2, 'rb'), name='8x4.png')
def tearDown(self):