Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

bsipocz
Copy link
Member

@bsipocz bsipocz commented Jul 26, 2023

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

pyvo/conftest.py Outdated
@@ -15,6 +16,8 @@
except ImportError:
ASTROPY_HEADER = False

# Keep this until we require numpy to be >=2.0
np.set_printoptions(legacy="1.25")
Copy link
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
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
Copy link

codecov bot commented Jul 26, 2023

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

@bsipocz
Copy link
Member Author

bsipocz commented Jul 26, 2023

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

@bsipocz
Copy link
Member Author

bsipocz commented Jul 26, 2023

(messing with the changelog label to test the GHA)

@bsipocz bsipocz merged commit 500ce4d into astropy:main Jul 26, 2023
11 of 13 checks passed
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