MCPcopy Index your code
hub / github.com/numpy/numpy / test_passes

Method test_passes

numpy/testing/tests/test_utils.py:2082–2091  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2080 """ Test assert_no_gc_cycles """
2081
2082 def test_passes(self):
2083 def no_cycle():
2084 b = []
2085 b.append([])
2086 return b
2087
2088 with assert_no_gc_cycles():
2089 no_cycle()
2090
2091 assert_no_gc_cycles(no_cycle)
2092
2093 def test_asserts(self):
2094 def make_cycle():

Callers

nothing calls this directly

Calls 1

assert_no_gc_cyclesFunction · 0.90

Tested by

no test coverage detected