diff options
author | Matti Picus <matti.picus@gmail.com> | 2021-07-08 00:22:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 00:22:38 +0300 |
commit | d78893c1116b3ada9eb1ebbddc17aee69693eb5c (patch) | |
tree | c9fb5c042829925cf01accfe5355d914dd4798d7 /numpy/testing | |
parent | 068074f4acab87b0fabf194517b7dfb0f038af5a (diff) | |
parent | 22848046920d58ba91893e003b1a07ed9f763275 (diff) | |
download | numpy-d78893c1116b3ada9eb1ebbddc17aee69693eb5c.tar.gz |
Merge pull request #19423 from Schleehauf/main
Skip finite recursion and refcounting tests for pyston
Diffstat (limited to 'numpy/testing')
-rw-r--r-- | numpy/testing/__init__.py | 3 | ||||
-rw-r--r-- | numpy/testing/__init__.pyi | 1 | ||||
-rw-r--r-- | numpy/testing/_private/utils.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py index 064a74a16..bca1d3670 100644 --- a/numpy/testing/__init__.py +++ b/numpy/testing/__init__.py @@ -8,7 +8,8 @@ away. from unittest import TestCase from ._private.utils import * -from ._private.utils import _assert_valid_refcount, _gen_alignment_data +from ._private.utils import (_assert_valid_refcount, _gen_alignment_data, + IS_PYSTON) from ._private import decorators as dec from ._private.nosetester import ( run_module_suite, NoseTester as Tester diff --git a/numpy/testing/__init__.pyi b/numpy/testing/__init__.pyi index 955dae862..9eaba3deb 100644 --- a/numpy/testing/__init__.pyi +++ b/numpy/testing/__init__.pyi @@ -37,6 +37,7 @@ from numpy.testing._private.utils import ( temppath as temppath, tempdir as tempdir, IS_PYPY as IS_PYPY, + IS_PYSTON as IS_PYSTON, HAS_REFCOUNT as HAS_REFCOUNT, suppress_warnings as suppress_warnings, assert_array_compare as assert_array_compare, diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index 487aa0b4c..77ca4ef85 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -48,7 +48,8 @@ KnownFailureTest = KnownFailureException # backwards compat verbose = 0 IS_PYPY = platform.python_implementation() == 'PyPy' -HAS_REFCOUNT = getattr(sys, 'getrefcount', None) is not None +IS_PYSTON = hasattr(sys, "pyston_version_info") +HAS_REFCOUNT = getattr(sys, 'getrefcount', None) is not None and not IS_PYSTON HAS_LAPACK64 = numpy.linalg.lapack_lite._ilp64 |