mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -272,9 +272,9 @@ class DictTest(unittest.TestCase):
|
|||
imag1b[k] = v
|
||||
imag2 = imag1b.copy()
|
||||
imag2[k] = v + 1.0
|
||||
self.assert_(imag1a == imag1a)
|
||||
self.assert_(imag1a == imag1b)
|
||||
self.assert_(imag2 == imag2)
|
||||
self.assertEqual(imag1a, imag1a)
|
||||
self.assertEqual(imag1a, imag1b)
|
||||
self.assertEqual(imag2, imag2)
|
||||
self.assert_(imag1a != imag2)
|
||||
for opname in ("lt", "le", "gt", "ge"):
|
||||
for op in opmap[opname]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue