1
0
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:
Tim Graham
2016-06-18 11:06:10 -04:00
parent 625b8e9295
commit cd217de610
3 changed files with 0 additions and 18 deletions

View File

@@ -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)