mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #28086: Single var-positional argument of tuple subtype was passed
unscathed to the C-defined function. Now it is converted to exact tuple.
This commit is contained in:
parent
5ed548715a
commit
63dc548109
3 changed files with 6 additions and 3 deletions
|
@ -471,7 +471,7 @@ class Tuple_TestCase(unittest.TestCase):
|
|||
|
||||
ret = get_args(*TupleSubclass([1, 2]))
|
||||
self.assertEqual(ret, (1, 2))
|
||||
self.assertIsInstance(ret, tuple)
|
||||
self.assertIs(type(ret), tuple)
|
||||
|
||||
ret = get_args()
|
||||
self.assertIn(ret, ((), None))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue