From 4510f2ced8efc16c0afeb9e7bb60be30408fc9f0 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Tue, 23 Jul 2019 11:56:59 -0700 Subject: TST: Mark test which increases global reference count The increase happens in dealloc and is thus harmless. Ignore it, since it is in a deprecated code path, so downstream should not be running into this path anyway (the leak is not a real leak, so that the only reason to avoid is, is to not trip downstream testing for reference leaks). --- numpy/core/tests/test_multiarray.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy') diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index 53e538f7d..bfc25e9ee 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -8080,6 +8080,8 @@ class TestWritebackIfCopy(object): arr_wb[...] = 100 assert_equal(arr, -100) + @pytest.mark.leaks_references( + reason="increments self in dealloc; ignore since deprecated path.") def test_dealloc_warning(self): with suppress_warnings() as sup: sup.record(RuntimeWarning) -- cgit v1.2.1