MCPcopy Create free account
hub / github.com/numpy/numpy / test_passes

Method test_passes

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

Source from the content-addressed store, hash-verified

1558class TestAssertNoGcCycles:
1559 """ Test assert_no_gc_cycles """
1560 def test_passes(self):
1561 def no_cycle():
1562 b = []
1563 b.append([])
1564 return b
1565
1566 with assert_no_gc_cycles():
1567 no_cycle()
1568
1569 assert_no_gc_cycles(no_cycle)
1570
1571 def test_asserts(self):
1572 def make_cycle():

Callers

nothing calls this directly

Calls 1

assert_no_gc_cyclesFunction · 0.90

Tested by

no test coverage detected