Removed unused lines in ImageFieldTests.test_pickle().

This commit is contained in:
Hasan Ramezani 2019-11-10 20:02:16 +01:00 committed by Mariusz Felisiak
parent 6c9c823e7a
commit 66e16dcc99
1 changed files with 0 additions and 3 deletions

View File

@ -178,9 +178,6 @@ class ImageFieldTests(ImageFieldTestMixin, TestCase):
p.mugshot.save("mug", self.file1) p.mugshot.save("mug", self.file1)
dump = pickle.dumps(p) dump = pickle.dumps(p)
p2 = Person(name="Bob")
p2.mugshot = self.file1
loaded_p = pickle.loads(dump) loaded_p = pickle.loads(dump)
self.assertEqual(p.mugshot, loaded_p.mugshot) self.assertEqual(p.mugshot, loaded_p.mugshot)