diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-08-15 14:22:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-15 14:22:20 -0500 |
commit | 63d30baee2535f03d55a10819ea1e56165d4c030 (patch) | |
tree | 9ec805147b5cbecdf8b4bc5e7a5264a3148ac532 /numpy/lib/tests/test_function_base.py | |
parent | 256103a9313a59a0a0762175574ed5acb5290520 (diff) | |
parent | 76eff9ca4648e96ba1f560e83f40383f68805493 (diff) | |
download | numpy-63d30baee2535f03d55a10819ea1e56165d4c030.tar.gz |
Merge pull request #7912 from mattip/pypy-fixes2
ENH: skip or avoid gc/objectmodel differences btwn pypy and cpython
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index c2bcc62ba..0d7b11c44 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -10,6 +10,7 @@ from numpy.testing import ( assert_allclose, assert_array_max_ulp, assert_warns, assert_raises_regex, dec, clear_and_catch_warnings ) +from numpy.testing.utils import HAS_REFCOUNT import numpy.lib.function_base as nfb from numpy.random import rand from numpy.lib import ( @@ -17,7 +18,7 @@ from numpy.lib import ( delete, diff, digitize, extract, flipud, gradient, hamming, hanning, histogram, histogramdd, i0, insert, interp, kaiser, meshgrid, msort, piecewise, place, rot90, select, setxor1d, sinc, split, trapz, trim_zeros, - unwrap, unique, vectorize, + unwrap, unique, vectorize ) from numpy.compat import long @@ -2232,6 +2233,7 @@ class TestBincount(TestCase): "minlength must be positive", lambda: np.bincount(x, minlength=0)) + @dec.skipif(not HAS_REFCOUNT, "python has no sys.getrefcount") def test_dtype_reference_leaks(self): # gh-6805 intp_refcount = sys.getrefcount(np.dtype(np.intp)) |