gh-83731: Test that isinstance() ignores tuple subclass methods (#158000)

Add a regression test to make sure isinstance() reads the items of a
tuple subclass directly, without calling its __iter__(), __getitem__()
or __len__().
1 file changed