Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refs #7745 -- Modified use of assertTrue to failUnless, because asser…

…tTrue isn't available in Python 2.3. Thanks to Karen Tracey for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7941 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c4d0cfe1eeff3bfec364ba59d23aaff8be093267 1 parent 1107e6b
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/admin_scripts/tests.py
View
2  tests/regressiontests/admin_scripts/tests.py
@@ -108,7 +108,7 @@ def assertNoOutput(self, stream):
self.assertEquals(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
def assertOutput(self, stream, msg):
"Utility assertion: assert that the given message exists in the output"
- self.assertTrue(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream))
+ self.failUnless(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream))
##########################################################################
# DJANGO ADMIN TESTS
Please sign in to comment.
Something went wrong with that request. Please try again.