mirror of
https://github.com/django/django.git
synced 2025-11-03 05:13:23 +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:
parent
625b8e9295
commit
cd217de610
3 changed files with 0 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue