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

Method test_get_objects_arguments

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

Source from the content-addressed store, hash-verified

919 gc.collect()
920
921 def test_get_objects_arguments(self):
922 gc.collect()
923 self.assertEqual(len(gc.get_objects()),
924 len(gc.get_objects(generation=None)))
925
926 self.assertRaises(ValueError, gc.get_objects, 1000)
927 self.assertRaises(ValueError, gc.get_objects, -1000)
928 self.assertRaises(TypeError, gc.get_objects, "1")
929 self.assertRaises(TypeError, gc.get_objects, 1.234)
930
931 def test_resurrection_only_happens_once_per_object(self):
932 class A: # simple self-loop

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
collectMethod · 0.80
get_objectsMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected