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

Method test_cycle

Lib/test/test_slice.py:290–297  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

288
289 @unittest.expectedFailure # TODO: RUSTPYTHON
290 def test_cycle(self):
291 class myobj(): pass
292 o = myobj()
293 o.s = slice(o)
294 w = weakref.ref(o)
295 o = None
296 support.gc_collect()
297 self.assertIsNone(w())
298
299if __name__ == "__main__":
300 unittest.main()

Callers

nothing calls this directly

Calls 3

myobjClass · 0.85
sliceClass · 0.85
assertIsNoneMethod · 0.80

Tested by

no test coverage detected