From 66e16dcc99f7442b135697989b79a8bd12c63272 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Sun, 10 Nov 2019 20:02:16 +0100 Subject: [PATCH] Removed unused lines in ImageFieldTests.test_pickle(). --- tests/model_fields/test_imagefield.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py index 59a1836bdb..5ac25fbe26 100644 --- a/tests/model_fields/test_imagefield.py +++ b/tests/model_fields/test_imagefield.py @@ -178,9 +178,6 @@ class ImageFieldTests(ImageFieldTestMixin, TestCase): p.mugshot.save("mug", self.file1) dump = pickle.dumps(p) - p2 = Person(name="Bob") - p2.mugshot = self.file1 - loaded_p = pickle.loads(dump) self.assertEqual(p.mugshot, loaded_p.mugshot)