diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-30 13:04:02 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-30 13:04:02 +0000 |
| commit | 03b12ae2cf75ddd61f3cdd99054ccd9ea91f6d55 (patch) | |
| tree | 840e269f86c3546f7962967f89fa611e56fa895e /tests/regressiontests/test_utils/python_25.py | |
| parent | fffbbe406232fb7403ed33123cd21f9c0996f627 (diff) | |
Rewrote a test assertion so that it doesn't fail under Python 2.7. Thanks to Florian Apolloner for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/test_utils/python_25.py')
| -rw-r--r-- | tests/regressiontests/test_utils/python_25.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/test_utils/python_25.py b/tests/regressiontests/test_utils/python_25.py index c28ae68c2e..4adea6c080 100644 --- a/tests/regressiontests/test_utils/python_25.py +++ b/tests/regressiontests/test_utils/python_25.py @@ -21,7 +21,7 @@ class AssertNumQueriesTests(TestCase): 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): |
