This PR fixes some test failures that were due to an optimization in Python 3.11: the tests expected objects in a cycle to have a __dict__, but Python 3.11 introduces an optimization that creates __dict__ lazily when needed. See python/cpython#89503.
This PR fixes some test failures that were due to an optimization in Python 3.11: the tests expected objects in a cycle to have a
__dict__
, but Python 3.11 introduces an optimization that creates__dict__
lazily when needed. See python/cpython#89503.