Skip to content

Commit

Permalink
Merge pull request #211 from bsipocz/ci_np_2.0
Browse files Browse the repository at this point in the history
CI: use numpy printoptions in testing
  • Loading branch information
pllim authored Aug 1, 2023
2 parents 92b408f + e085312 commit a893bb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
from functools import partial
import textwrap
from packaging.version import Version

import pytest
import numpy as np


# Keep this until we require numpy to be >=2.0 or there is a directive in doctestplus
# to support multiple ways of repr
if Version(np.__version__) > Version("2.0.0.dev0+151"):
np.set_printoptions(legacy="1.25")


def _wrap_docstring_in_func(func_name, docstring):
Expand Down

0 comments on commit a893bb4

Please sign in to comment.