gh-159739: Add a test on _PyTuple_Resize() error (#161957) Check that no reference is leaked when _PyTuple_Resize() fails.