()
| 37 | @pytest.mark.skipif(platform.python_implementation() != 'CPython', |
| 38 | reason='Requires CPython') |
| 39 | def test_quiver_key_memory_leak(): |
| 40 | fig, ax = plt.subplots() |
| 41 | |
| 42 | Q = draw_quiver(ax) |
| 43 | |
| 44 | qk = ax.quiverkey(Q, 0.5, 0.92, 2, r'$2 \frac{m}{s}$', |
| 45 | labelpos='W', |
| 46 | fontproperties={'weight': 'bold'}) |
| 47 | orig_refcount = sys.getrefcount(qk) |
| 48 | qk.remove() |
| 49 | assert sys.getrefcount(qk) < orig_refcount |
| 50 | |
| 51 | |
| 52 | def test_quiver_number_of_args(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…