Skip to content

Commit bc677da

Browse files
authored
TEST update test to pass with numpy 2 (#535)
1 parent 27c008e commit bc677da

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ psutil
99
tornado
1010
# To be able to test numpy specific things
1111
# but do not build numpy from source on Python nightly
12-
numpy >=1.18.5; python_version <= '3.8'
12+
numpy >=1.18.5; python_version <= '3.12'
1313
# Code coverage uploader for Travis:
1414
codecov
1515
coverage

tests/cloudpickle_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,10 @@ def test_importing_multiprocessing_does_not_impact_whichmodule(self):
15011501
)
15021502
out, _ = proc.communicate()
15031503
self.assertEqual(proc.wait(), 0)
1504-
self.assertEqual(out, b"numpy.core._multiarray_umath\n")
1504+
assert out.strip() in (
1505+
b"numpy.core._multiarray_umath", # numpy 1
1506+
b"numpy._core._multiarray_umath", # numpy 2
1507+
)
15051508

15061509
def test_unrelated_faulty_module(self):
15071510
# Check that pickling a dynamically defined function or class does not

0 commit comments

Comments
 (0)