summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-22 16:43:38 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-22 16:43:38 (GMT)
commitf02f93eccabad16d694bcf44d6bf6fa0df8f2ade (patch)
tree0acf4e186e85b1b9fc0ffed839cbf3e15c41c3ed /Lib
parentea8f2a6d090218a3e64fec855316ae0e73bc48ec (diff)
parent63dc548109c4f5e17280382831b93fb8e9da9207 (diff)
downloadcpython-f02f93eccabad16d694bcf44d6bf6fa0df8f2ade.zip
cpython-f02f93eccabad16d694bcf44d6bf6fa0df8f2ade.tar.gz
cpython-f02f93eccabad16d694bcf44d6bf6fa0df8f2ade.tar.bz2
Issue #28086: Single var-positional argument of tuple subtype was passed
unscathed to the C-defined function. Now it is converted to exact tuple.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_getargs2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_getargs2.py b/Lib/test/test_getargs2.py
index 5750bfa..8a194aa 100644
--- a/Lib/test/test_getargs2.py
+++ b/Lib/test/test_getargs2.py
@@ -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))