MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_class

Method test_class

Lib/test/test_gc.py:118–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 self.assertEqual(gc.collect(), 2)
117
118 def test_class(self):
119 class A:
120 pass
121 A.a = A
122 gc.collect()
123 del A
124 self.assertNotEqual(gc.collect(), 0)
125
126 def test_newstyleclass(self):
127 class A(object):

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
assertNotEqualMethod · 0.80

Tested by

no test coverage detected