Skip to content

MAINT: add workaround for doctesting with new numpy repr - #465

Merged
bsipocz merged 2 commits into
astropy:mainfrom
bsipocz:test_workaround_new_np_repr
Jul 26, 2023
Merged

bsipocz merged 2 commits into
astropy:mainfrom
bsipocz:test_workaround_new_np_repr

Conversation

@bsipocz

@bsipocz bsipocz commented Jul 26, 2023

Copy link
Copy Markdown
Member

This should close #464 and fix the CI failure we see in the devtest job.

Comment thread pyvo/conftest.py Outdated
ASTROPY_HEADER = False

# Keep this until we require numpy to be >=2.0
np.set_printoptions(legacy="1.25")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need a numpy version check before calling it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI says that apparently I do 😅

@codecov

codecov Bot commented Jul 26, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #465 (bdea8e1) into main (c022c95) will not change coverage.
Report is 2 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #465   +/-   ##
=======================================
  Coverage   80.08%   80.08%           
=======================================
  Files          52       52           
  Lines        6020     6020           
=======================================
  Hits         4821     4821           
  Misses       1199     1199           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment thread pyvo/conftest.py Resolved
@bsipocz

bsipocz commented Jul 26, 2023

Copy link
Copy Markdown
Member Author

Note that online test failure is expected and is taken care of in a separate PR already.

@bsipocz

bsipocz commented Jul 26, 2023

Copy link
Copy Markdown
Member Author

(messing with the changelog label to test the GHA)

@bsipocz
bsipocz merged commit 500ce4d into astropy:main Jul 26, 2023
bsipocz added a commit that referenced this pull request Aug 16, 2023
MAINT: add workaround for doctesting with new numpy repr
@bsipocz
bsipocz deleted the test_workaround_new_np_repr branch October 20, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TST: numpy 2.0 float repr incompatibility in tests

2 participants