From 96d1d4e29275f4f5900f0725975d2ad0a4d05816 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 19 Oct 2013 08:31:38 -0400 Subject: Removed unused local variables in tests. --- tests/model_fields/test_imagefield.py | 2 +- tests/model_fields/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/model_fields') diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py index ec41247248..9aa5db53c0 100644 --- a/tests/model_fields/test_imagefield.py +++ b/tests/model_fields/test_imagefield.py @@ -159,7 +159,7 @@ class ImageFieldTests(ImageFieldTestMixin, TestCase): self.assertEqual(p.mugshot.closed, True) # After asking for the size, the file should still be closed. - _ = p.mugshot.size + p.mugshot.size self.assertEqual(p.mugshot.closed, True) def test_pickle(self): diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index ac7dd0252f..f3ef83a39c 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -604,7 +604,7 @@ class PromiseTest(test.TestCase): def test_IPAddressField(self): lazy_func = lazy(lambda: '127.0.0.1', six.text_type) - with warnings.catch_warnings(record=True) as w: + with warnings.catch_warnings(record=True): warnings.simplefilter("always") self.assertIsInstance( IPAddressField().get_prep_value(lazy_func()), -- cgit v1.3