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:
Serhiy Storchaka 2016-09-22 19:41:20 +03:00
parent 5ed548715a
commit 63dc548109
3 changed files with 6 additions and 3 deletions

View file

@ -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))