mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Patch by Christian Heimes to change self.assert_(x == y) into
self.assertEqual(x, y). (Christian used self.failUnlessEqual(), but the double negative makes it hard to grok, so I changed it.)
This commit is contained in:
parent
c9b9de1797
commit
e61fd5b5ed
23 changed files with 294 additions and 294 deletions
|
@ -819,7 +819,7 @@ class DecimalUsabilityTest(unittest.TestCase):
|
|||
self.failUnless(dc >= da)
|
||||
self.failUnless(da < dc)
|
||||
self.failUnless(da <= dc)
|
||||
self.failUnless(da == db)
|
||||
self.assertEqual(da, db)
|
||||
self.failUnless(da != dc)
|
||||
self.failUnless(da <= db)
|
||||
self.failUnless(da >= db)
|
||||
|
@ -830,7 +830,7 @@ class DecimalUsabilityTest(unittest.TestCase):
|
|||
#a Decimal and an int
|
||||
self.failUnless(dc > 23)
|
||||
self.failUnless(23 < dc)
|
||||
self.failUnless(dc == 45)
|
||||
self.assertEqual(dc, 45)
|
||||
self.assertEqual(cmp(dc,23), 1)
|
||||
self.assertEqual(cmp(23,dc), -1)
|
||||
self.assertEqual(cmp(dc,45), 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue