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/file_storage | |
| parent | 625b8e9295d79650208bfb3fca8bf9e6aaf578e4 (diff) | |
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/file_storage')
| -rw-r--r-- | tests/file_storage/tests.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index 24481730ea..44da2a547f 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -10,7 +10,6 @@ import threading import time import unittest from datetime import datetime, timedelta -from tempfile import NamedTemporaryFile from django.core.cache import cache from django.core.exceptions import SuspiciousFileOperation, SuspiciousOperation @@ -860,13 +859,6 @@ class FileFieldStorageTests(TestCase): with temp_storage.open('tests/stringio') as f: self.assertEqual(f.read(), b'content') - def test_save_temporary_file(self): - storage = Storage() - with NamedTemporaryFile() as f: - f.write(b'content') - storage.normal = File(f) - storage.save() # no crash - # Tests for a race condition on file saving (#4948). # This is written in such a way that it'll always pass on platforms |
