Skip to content

Commit 00fa786

Browse files
committed
add basic test for legacy patching functions
1 parent b592e02 commit 00fa786

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

mkl_umath/tests/test_patching.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,14 @@ def test_patch_verbose():
9797

9898
mkl_umath.restore_numpy_umath()
9999
assert not mkl_umath.is_patched()
100+
101+
102+
def test_patch_legacy_basic():
103+
mkl_umath.restore()
104+
assert not mkl_umath.is_patched()
105+
106+
mkl_umath.use_in_numpy() # Enable mkl_umath in Numpy
107+
assert mkl_umath.is_patched()
108+
109+
mkl_umath.restore() # Disable mkl_umath in Numpy
110+
assert not mkl_umath.is_patched()

0 commit comments

Comments
 (0)