def METHOD_NAME(self):
    # Check that a specific bug in _PyTuple_Resize() is squashed.
    def f():
        for i in range(1000):
            yield i
    self.assertEqual(list(tuple(f())), range(1000))