mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Reverted "Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File."
This reverts commit 1b407050dd as it
introduces a regression in the test for refs #26772.
This commit is contained in:
@@ -26,12 +26,6 @@ else:
|
||||
|
||||
|
||||
class FileTests(unittest.TestCase):
|
||||
|
||||
def test_file_truncates_namedtemporaryfile_name(self):
|
||||
named_file = NamedTemporaryFile()
|
||||
f = File(named_file)
|
||||
self.assertEqual(f.name, os.path.basename(named_file.name))
|
||||
|
||||
def test_unicode_uploadedfile_name(self):
|
||||
uf = UploadedFile(name='¿Cómo?', content_type='text')
|
||||
self.assertIs(type(repr(uf)), str)
|
||||
|
||||
Reference in New Issue
Block a user