mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
convert old fail* assertions to assert*
This commit is contained in:
parent
98d23f2e06
commit
c9c0f201fe
275 changed files with 4540 additions and 4540 deletions
|
@ -210,10 +210,10 @@ class RatTestCase(unittest.TestCase):
|
|||
self.assertEqual(gcd(-10, -2), -2)
|
||||
for i in range(1, 20):
|
||||
for j in range(1, 20):
|
||||
self.assert_(gcd(i, j) > 0)
|
||||
self.assert_(gcd(-i, j) < 0)
|
||||
self.assert_(gcd(i, -j) > 0)
|
||||
self.assert_(gcd(-i, -j) < 0)
|
||||
self.assertTrue(gcd(i, j) > 0)
|
||||
self.assertTrue(gcd(-i, j) < 0)
|
||||
self.assertTrue(gcd(i, -j) > 0)
|
||||
self.assertTrue(gcd(-i, -j) < 0)
|
||||
|
||||
def test_constructor(self):
|
||||
a = Rat(10, 15)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue