diff options
author | Tim Graham <timograham@gmail.com> | 2016-06-18 11:06:10 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-06-18 11:06:56 -0400 |
commit | cd217de6100e0101fd921dd18bc2e706bac397c9 (patch) | |
tree | 4c5b279e8c7213f0ca6eefd1862ccb97f63309af /tests/files | |
parent | 625b8e9295d79650208bfb3fca8bf9e6aaf578e4 (diff) | |
download | django-cd217de6100e0101fd921dd18bc2e706bac397c9.tar.gz |
Reverted "Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File."
This reverts commit 1b407050dd53e56686fdd3e168f8cac4f9be8306 as it
introduces a regression in the test for refs #26772.
Diffstat (limited to 'tests/files')
-rw-r--r-- | tests/files/tests.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/files/tests.py b/tests/files/tests.py index d20c2d47bc..4ff3b1f49c 100644 --- a/tests/files/tests.py +++ b/tests/files/tests.py @@ -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) |