diff options
| author | Alexey Kotlyarov <a@koterpillar.com> | 2016-02-12 12:12:54 +1100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-15 11:44:29 -0500 |
| commit | b59f963ad2a49322725b20fac71661bd49643443 (patch) | |
| tree | 9f9f8300f776e7361d2f113d499dd885d27ec934 /tests/forms_tests | |
| parent | 1ac7fdcd136bbb7ae5476cb54f670be20178c4e2 (diff) | |
Fixed #26212 -- Made forms.FileField and translation.lazy_number() picklable.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_fields.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index c4798076d3..bd33cff4fd 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -949,6 +949,9 @@ class FieldsTests(SimpleTestCase): # with here) self.assertTrue(f.has_changed('resume.txt', {'filename': 'resume.txt', 'content': 'My resume'})) + def test_file_picklable(self): + self.assertIsInstance(pickle.loads(pickle.dumps(FileField())), FileField) + # ImageField ################################################################## @skipIf(Image is None, "Pillow is required to test ImageField") |
