mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
use assert method
This commit is contained in:
parent
d02441ea2f
commit
8b0ef21c15
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class StructSeqTest(unittest.TestCase):
|
|||
|
||||
def test_tuple(self):
|
||||
t = time.gmtime()
|
||||
assert isinstance(t, tuple)
|
||||
self.assertIsInstance(t, tuple)
|
||||
astuple = tuple(t)
|
||||
self.assertEqual(len(t), len(astuple))
|
||||
self.assertEqual(t, astuple)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue