()
| 22 | @pytest.mark.skipif(platform.python_implementation() != 'CPython', |
| 23 | reason='Requires CPython') |
| 24 | def 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', |
nothing calls this directly
no test coverage detected
searching dependent graphs…