diff -r ae6813d21859 Lib/test/test_getargs2.py --- a/Lib/test/test_getargs2.py Thu Sep 22 11:43:46 2016 +0300 +++ b/Lib/test/test_getargs2.py Thu Sep 22 12:49:18 2016 +0300 @@ -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)) diff -r ae6813d21859 Python/ceval.c --- a/Python/ceval.c Thu Sep 22 11:43:46 2016 +0300 +++ b/Python/ceval.c Thu Sep 22 12:49:18 2016 +0300 @@ -3310,7 +3310,7 @@ PyObject * } callargs = POP(); func = TOP(); - if (!PyTuple_Check(callargs)) { + if (!PyTuple_CheckExact(callargs)) { if (Py_TYPE(callargs)->tp_iter == NULL && !PySequence_Check(callargs)) { PyErr_Format(PyExc_TypeError, @@ -3327,7 +3327,7 @@ PyObject * goto error; } } - assert(PyTuple_Check(callargs)); + assert(PyTuple_CheckExact(callargs)); result = do_call_core(func, callargs, kwargs); Py_DECREF(func);