diff options
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/test_imagefield.py | 2 | ||||
| -rw-r--r-- | tests/model_fields/tests.py | 2 |
2 files changed, 2 insertions, 2 deletions
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()), |
