diff options
author | slepton <slepton@posteo.de> | 2021-07-07 08:27:49 +0200 |
---|---|---|
committer | slepton <slepton@posteo.de> | 2021-07-07 19:49:22 +0200 |
commit | 984593982f0baf4be771cf578635994c88559078 (patch) | |
tree | 4fed8be2102a35c8a6cd49920fbc24b1a6db4ad1 /numpy/testing/_private/utils.py | |
parent | f5fcd004956c7c6a7699d73a9fd687f145f7cc29 (diff) | |
download | numpy-984593982f0baf4be771cf578635994c88559078.tar.gz |
For Pyston the refcount of "immortal" objects is set to ~infinity
Diffstat (limited to 'numpy/testing/_private/utils.py')
-rw-r--r-- | numpy/testing/_private/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |