mdickinson / refcycle

Support for displaying and analyzing reference graphs of Python objects.
Apache License 2.0
15 stars 1 forks source link

Fix a test failure to lazy __dict__ creation on Python >= 3.11 #88

Closed mdickinson closed 12 months ago

mdickinson commented 12 months ago

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.