diff options
| author | Tim Graham <timograham@gmail.com> | 2016-06-17 21:04:02 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-17 21:08:56 -0400 |
| commit | bdc29b7188af0cda31a2e37759236d06d996eb44 (patch) | |
| tree | 8b915f62d58e609e753858fcb680d8ea8fa9b223 /tests | |
| parent | 799fbc72355834b78a326881b134482042797a97 (diff) | |
[1.10.x] Reverted "Fixed #26398 -- Made FieldFile.open() respect its mode argument."
This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to
regressions described in refs #26772.
Backport of 7def55c3f6716fcfa40a3bd5d0fbb2090588d81e from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/file_storage/tests.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index af86f2d260..9f50ff06e7 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -736,16 +736,6 @@ class FileFieldStorageTests(TestCase): self.assertEqual(list(obj.normal.chunks(chunk_size=2)), [b"co", b"nt", b"en", b"t"]) obj.normal.close() - def test_filefield_write(self): - # Files can be written to. - obj = Storage.objects.create(normal=SimpleUploadedFile('rewritten.txt', b'content')) - with obj.normal as normal: - normal.open('wb') - normal.write(b'updated') - obj.refresh_from_db() - self.assertEqual(obj.normal.read(), b'updated') - obj.normal.close() - def test_duplicate_filename(self): # Multiple files with the same name get _(7 random chars) appended to them. objs = [Storage() for i in range(2)] |
