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

Misc test fixes including numpy 2 doctests for motifs #4728

Merged
merged 4 commits into from
May 13, 2024

Conversation

peterjc
Copy link
Member

@peterjc peterjc commented May 13, 2024

  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run pre-commit
    locally, and understand that continuous integration checks will be used to
    confirm the Biopython unit tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

This follows up #4725 by skipping the NCBI EGQuery doctest, silences a couple of overlooked warnings from the test suite, and takes the pragmatic solution to the motif doctest issues under numpy 2.0 and this should close #4676.

With this I think we're OK to start the Biopython 1.84 release - and at very least encouraging some testing with numpy 1+2 using the Biopython from git.

Could just remove the example, but this seems the
simplest pragmatic solution for now.
This adds a cast to avoid storing numpy floats
which as of numpy 2.0 have a different __repr__
and this complicate our doctest behaviour.

Closes biopython#4676.
@peterjc peterjc merged commit 20c9b4a into biopython:master May 13, 2024
32 checks passed
@peterjc peterjc deleted the test_fixes branch May 13, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update doctests for numpy 2.0.0 scaler repr changes
2 participants