ยปCore Development>Code coverage>Lib/test/leakers/test_selftype.py

Python code coverage for Lib/test/leakers/test_selftype.py

#countcontent
1n/a# Reference cycles involving only the ob_type field are rather uncommon
2n/a# but possible. Inspired by SF bug 1469629.
3n/a
4n/aimport gc
5n/a
6n/adef leak():
7n/a class T(type):
8n/a pass
9n/a class U(type, metaclass=T):
10n/a pass
11n/a U.__class__ = U
12n/a del U
13n/a gc.collect(); gc.collect(); gc.collect()