summaryrefslogtreecommitdiff
path: root/Lib/unittest/case.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-02-10 14:31:30 +0000
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-02-10 14:31:30 +0000
commit67dfc77dfd271565a8423240aa0e9d825f34594a (patch)
tree48b3f96813cda4a2f23f3574638881a0e2133ddb /Lib/unittest/case.py
parentdb43b5a1f5a4b580b68fa0eef0d03d604d7f8805 (diff)
downloadcpython-git-67dfc77dfd271565a8423240aa0e9d825f34594a.tar.gz
Remove deprecation on assert_. It is used too frequently.
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r--Lib/unittest/case.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 66f414fea1..1227e3ba36 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -485,6 +485,7 @@ class TestCase(object):
assertNotEquals = assertNotEqual
assertAlmostEquals = assertAlmostEqual
assertNotAlmostEquals = assertNotAlmostEqual
+ assert_ = assertTrue
# These fail* assertion method names are pending deprecation and will
# be a DeprecationWarning in 3.2; http://bugs.python.org/issue2578
@@ -501,7 +502,6 @@ class TestCase(object):
failUnlessAlmostEqual = _deprecate(assertAlmostEqual)
failIfAlmostEqual = _deprecate(assertNotAlmostEqual)
failUnless = _deprecate(assertTrue)
- assert_ = _deprecate(assertTrue)
failUnlessRaises = _deprecate(assertRaises)
failIf = _deprecate(assertFalse)