diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-22 16:41:20 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-22 16:41:20 (GMT) |
commit | 63dc548109c4f5e17280382831b93fb8e9da9207 (patch) | |
tree | 84948c6fe6dbb4db020fed4458b5aef220b42adb /Lib | |
parent | 5ed548715a2115ec73fce92074ac97ed832d2e19 (diff) | |
download | cpython-63dc548109c4f5e17280382831b93fb8e9da9207.zip cpython-63dc548109c4f5e17280382831b93fb8e9da9207.tar.gz cpython-63dc548109c4f5e17280382831b93fb8e9da9207.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.py | 2 |
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)) |