MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_quiver_memory_leak

Function test_quiver_memory_leak

lib/matplotlib/tests/test_quiver.py:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22@pytest.mark.skipif(platform.python_implementation() != 'CPython',
23 reason='Requires CPython')
24def test_quiver_memory_leak():
25 fig, ax = plt.subplots()
26
27 Q = draw_quiver(ax)
28 ttX = Q.X
29 orig_refcount = sys.getrefcount(ttX)
30 Q.remove()
31
32 del Q
33
34 assert sys.getrefcount(ttX) < orig_refcount
35
36
37@pytest.mark.skipif(platform.python_implementation() != 'CPython',

Callers

nothing calls this directly

Calls 3

draw_quiverFunction · 0.85
subplotsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…