Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rewrote a test assertion so that it doesn't fail under Python 2.7. Th…

…anks to Florian Apolloner for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 03b12ae2cf75ddd61f3cdd99054ccd9ea91f6d55 1 parent fffbbe4
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/test_utils/python_25.py
View
2  tests/regressiontests/test_utils/python_25.py
@@ -21,7 +21,7 @@ def test_failure(self):
with self.assertRaises(AssertionError) as exc_info:
with self.assertNumQueries(2):
Person.objects.count()
- self.assertEqual(str(exc_info.exception), "1 != 2 : 1 queries executed, 2 expected")
+ self.assertIn("1 queries executed, 2 expected", str(exc_info.exception))
with self.assertRaises(TypeError):
with self.assertNumQueries(4000):
Please sign in to comment.
Something went wrong with that request. Please try again.