mirror of
https://github.com/python/cpython.git
synced 2025-11-28 22:18:54 +00:00
assert tuple inheritance
This commit is contained in:
parent
808e1ada94
commit
8c567c540d
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ class StructSeqTest(unittest.TestCase):
|
||||||
|
|
||||||
def test_tuple(self):
|
def test_tuple(self):
|
||||||
t = time.gmtime()
|
t = time.gmtime()
|
||||||
|
assert isinstance(t, tuple)
|
||||||
astuple = tuple(t)
|
astuple = tuple(t)
|
||||||
self.assertEqual(len(t), len(astuple))
|
self.assertEqual(len(t), len(astuple))
|
||||||
self.assertEqual(t, astuple)
|
self.assertEqual(t, astuple)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue