diff options
| author | Hood Chatham <roberthoodchatham@gmail.com> | 2022-11-10 11:54:21 -0800 |
|---|---|---|
| committer | Hood Chatham <roberthoodchatham@gmail.com> | 2022-11-11 02:52:06 -0800 |
| commit | 08c6e9c142e619ac5175b6a13342ba2f2c571ddd (patch) | |
| tree | 8be92e0f2d27dd9c888fde95c2dfe46a305ba892 /numpy/testing | |
| parent | 6aacc5167983d7c6f8689d7039294f2fc0d5f5fb (diff) | |
| download | numpy-08c6e9c142e619ac5175b6a13342ba2f2c571ddd.tar.gz | |
TST: Skip tests that are not currently supported in wasm
Diffstat (limited to 'numpy/testing')
| -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 26b2aac4d..ea1dc28b5 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -34,7 +34,7 @@ __all__ = [ 'assert_array_max_ulp', 'assert_warns', 'assert_no_warnings', 'assert_allclose', 'IgnoreException', 'clear_and_catch_warnings', 'SkipTest', 'KnownFailureException', 'temppath', 'tempdir', 'IS_PYPY', - 'HAS_REFCOUNT', 'suppress_warnings', 'assert_array_compare', + 'HAS_REFCOUNT', "IS_WASM", 'suppress_warnings', 'assert_array_compare', 'assert_no_gc_cycles', 'break_cycles', 'HAS_LAPACK64', 'IS_PYSTON', '_OLD_PROMOTION' ] @@ -48,6 +48,7 @@ class KnownFailureException(Exception): KnownFailureTest = KnownFailureException # backwards compat verbose = 0 +IS_WASM = platform.machine() in ["wasm32", "wasm64"] IS_PYPY = sys.implementation.name == 'pypy' IS_PYSTON = hasattr(sys, "pyston_version_info") HAS_REFCOUNT = getattr(sys, 'getrefcount', None) is not None and not IS_PYSTON |
