mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
@ -220,10 +220,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