Skip to content

Commit

Permalink
TEST update test to pass with numpy 2 (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel authored Jun 19, 2024
1 parent 27c008e commit bc677da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ psutil
tornado
# To be able to test numpy specific things
# but do not build numpy from source on Python nightly
numpy >=1.18.5; python_version <= '3.8'
numpy >=1.18.5; python_version <= '3.12'
# Code coverage uploader for Travis:
codecov
coverage
Expand Down
5 changes: 4 additions & 1 deletion tests/cloudpickle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,10 @@ def test_importing_multiprocessing_does_not_impact_whichmodule(self):
)
out, _ = proc.communicate()
self.assertEqual(proc.wait(), 0)
self.assertEqual(out, b"numpy.core._multiarray_umath\n")
assert out.strip() in (
b"numpy.core._multiarray_umath", # numpy 1
b"numpy._core._multiarray_umath", # numpy 2
)

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

0 comments on commit bc677da

Please sign in to comment.