From c6597ac89f3690a44df27fb71885fc1490e82be5 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Thu, 9 Jun 2022 11:15:04 -0700 Subject: TST: Improve testing setup by introducing a new `weak_promotion` fixture Unfortunately, this shows that the rational tests are still broken a bit. --- numpy/testing/_private/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/testing/_private/utils.py') diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index 4ec42cbb8..d7e218486 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -36,7 +36,7 @@ __all__ = [ 'SkipTest', 'KnownFailureException', 'temppath', 'tempdir', 'IS_PYPY', 'HAS_REFCOUNT', 'suppress_warnings', 'assert_array_compare', 'assert_no_gc_cycles', 'break_cycles', 'HAS_LAPACK64', 'IS_PYSTON', - 'OLD_PROMOTION' + '_OLD_PROMOTION' ] @@ -53,7 +53,7 @@ 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 -OLD_PROMOTION = np._get_promotion_state() == 'legacy' +_OLD_PROMOTION = lambda: np._get_promotion_state() == 'legacy' def import_nose(): -- cgit v1.2.1