diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2019-07-23 11:56:59 -0700 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2019-07-26 11:48:32 -0700 |
commit | 4510f2ced8efc16c0afeb9e7bb60be30408fc9f0 (patch) | |
tree | 359aa25057607ce8985edbb47ceb1d2f42cee8e1 /numpy | |
parent | c53d0c42e9d44840460b02da519442f4f8285b46 (diff) | |
download | numpy-4510f2ced8efc16c0afeb9e7bb60be30408fc9f0.tar.gz |
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).
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_multiarray.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |