mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -30,15 +30,15 @@ class XDRTest(unittest.TestCase):
|
|||
|
||||
self.assertEqual(up.unpack_int(), 42)
|
||||
self.assertEqual(up.unpack_uint(), 9)
|
||||
self.assert_(up.unpack_bool() is True)
|
||||
self.assertTrue(up.unpack_bool() is True)
|
||||
|
||||
# remember position
|
||||
pos = up.get_position()
|
||||
self.assert_(up.unpack_bool() is False)
|
||||
self.assertTrue(up.unpack_bool() is False)
|
||||
|
||||
# rewind and unpack again
|
||||
up.set_position(pos)
|
||||
self.assert_(up.unpack_bool() is False)
|
||||
self.assertTrue(up.unpack_bool() is False)
|
||||
|
||||
self.assertEqual(up.unpack_uhyper(), 45)
|
||||
self.assertAlmostEqual(up.unpack_float(), 1.9)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue