From c44891a1a8b50fdff3ab7e4ffea049fa96d604ae Mon Sep 17 00:00:00 2001 From: mrigal Date: Sat, 11 Apr 2015 22:55:08 +0200 Subject: [PATCH] changed unittest to call for compatibility with Python 2.6 --- tests/fields/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fields/fields.py b/tests/fields/fields.py index 830c9882..3b860cc7 100644 --- a/tests/fields/fields.py +++ b/tests/fields/fields.py @@ -2491,7 +2491,7 @@ class FieldTest(unittest.TestCase): binary_id = uuid.uuid4().bytes att = Attachment(id=binary_id).save() self.assertEqual(1, Attachment.objects.count()) - self.assertIsNotNone(Attachment.objects.filter(id=binary_id).first()) + self.assertNotEqual(None, Attachment.objects.filter(id=binary_id).first()) att.delete() self.assertEqual(0, Attachment.objects.count())