Skip to content

Commit

Permalink
Use numpy legacy printing in tests to maintain doctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
nennigb committed Jul 3, 2024
1 parent 4329300 commit d142f7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pypolsys/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
import os
import sys

# Numpy 2.0 change default printing options making doctest failing.
# https://numpy.org/neps/nep-0051-scalar-representation.html
# Use legacy mode for testing
np.set_printoptions(legacy="1.25")


def sort_ref_found(ref, r):
""" Sort reference solution and the found solution using
Expand Down

0 comments on commit d142f7a

Please sign in to comment.