summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@thenicols.net>2015-04-27 15:59:16 +0100
committerTim Graham <timograham@gmail.com>2015-04-28 09:31:35 -0400
commitc37eb3c870db46f64578e9974f576dd2d8c40f8a (patch)
tree505c0d36d0ebe157aec2c6c88b381d1fd1e16982 /tests/model_fields
parent5105c1628d0c43a39669609d0746630c444641e0 (diff)
[1.8.x] Fixed #24714 -- Used more specific assertions than assertEqual in tests.
Backport of eaeea6f94701547ce1b50dbcf5cf71460e9e4c91 from master
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py
index f2409ed919..e04c518a93 100644
--- a/tests/model_fields/tests.py
+++ b/tests/model_fields/tests.py
@@ -478,7 +478,7 @@ class ValidationTest(test.TestCase):
def test_nullable_integerfield_cleans_none_on_null_and_blank_true(self):
f = models.IntegerField(null=True, blank=True)
- self.assertEqual(None, f.clean(None, None))
+ self.assertIsNone(f.clean(None, None))
def test_integerfield_raises_error_on_empty_input(self):
f = models.IntegerField(null=False)