tskit-dev / tskit

Population-scale genomics
MIT License
147 stars 69 forks source link

Fix tests for numpy 2.0 #2963

Closed jeromekelleher closed 1 week ago

jeromekelleher commented 2 weeks ago

Looks like we just have a few minor test breakages in numpy 2.0:

================================== short test summary info ===================================
FAILED tests/test_lowlevel.py::TestTree::test_bad_tracked_samples - Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingD...
FAILED tests/test_genotype_matching.py::TestTreeViterbiDip::test_simple_n_10_no_recombination - TypeError: cannot pickle 'generator' object
FAILED tests/test_genotype_matching.py::TestTreeViterbiDip::test_simple_n_6 - TypeError: cannot pickle 'generator' object
FAILED tests/test_util.py::TestNumpyArrayCasting::test_nonrectangular_input - Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingD...
============ 4 failed, 15177 passed, 136 skipped, 1 warning in 293.24s (0:04:53) =============
benjeffery commented 1 week ago

Fixed in #2964