summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-11-05 16:29:37 -0600
committerGitHub <noreply@github.com>2021-11-05 16:29:37 -0600
commit7c211013d559db238daf76fdb90af1d2f37a341e (patch)
tree76657725454a8dbb14fd0d39861b97eb955a3841
parent9ec8679add022863f1ec901a073e35a63ca357e1 (diff)
parent3930aea7cb333d043f955b35d8d5c0645dfe45ae (diff)
downloadnumpy-7c211013d559db238daf76fdb90af1d2f37a341e.tar.gz
Merge pull request #20308 from BvB93/is_pyston
MAINT: Add `IS_PYSTON` to `np.testing.__all__`
-rw-r--r--numpy/testing/__init__.py3
-rw-r--r--numpy/testing/_private/utils.py2
-rw-r--r--numpy/testing/_private/utils.pyi1
3 files changed, 3 insertions, 3 deletions
diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py
index a008f5828..6e06c5b49 100644
--- a/numpy/testing/__init__.py
+++ b/numpy/testing/__init__.py
@@ -8,8 +8,7 @@ away.
from unittest import TestCase
from ._private.utils import *
-from ._private.utils import (_assert_valid_refcount, _gen_alignment_data,
- IS_PYSTON)
+from ._private.utils import (_assert_valid_refcount, _gen_alignment_data)
from ._private import extbuild, decorators as dec
from ._private.nosetester import (
run_module_suite, NoseTester as Tester
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py
index 3d52f74b2..4c6b64bc9 100644
--- a/numpy/testing/_private/utils.py
+++ b/numpy/testing/_private/utils.py
@@ -35,7 +35,7 @@ __all__ = [
'assert_allclose', 'IgnoreException', 'clear_and_catch_warnings',
'SkipTest', 'KnownFailureException', 'temppath', 'tempdir', 'IS_PYPY',
'HAS_REFCOUNT', 'suppress_warnings', 'assert_array_compare',
- 'assert_no_gc_cycles', 'break_cycles', 'HAS_LAPACK64'
+ 'assert_no_gc_cycles', 'break_cycles', 'HAS_LAPACK64', 'IS_PYSTON',
]
diff --git a/numpy/testing/_private/utils.pyi b/numpy/testing/_private/utils.pyi
index 26ce52e40..4ba5d82ee 100644
--- a/numpy/testing/_private/utils.pyi
+++ b/numpy/testing/_private/utils.pyi
@@ -133,6 +133,7 @@ class suppress_warnings:
verbose: int
IS_PYPY: Final[bool]
+IS_PYSTON: Final[bool]
HAS_REFCOUNT: Final[bool]
HAS_LAPACK64: Final[bool]