Skip to content

Silence test_GenBank.py invalid date warnings in test suite. - #5090

Merged
peterjc merged 4 commits into
biopython:masterfrom
mikeph52:master
Oct 27, 2025
Merged

peterjc merged 4 commits into
biopython:masterfrom
mikeph52:master

Conversation

@mikeph52

Copy link
Copy Markdown
Contributor
  • 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.)

Closes #5081.
This change silences the invalid date warnings in test_GenBank.py when running the test suite, using a similar approach to commit 758c6ae as suggested by @peterjc . This is my first contribution to Biopython, and I hope it is helpful. Have a great day.

@mikeph52
mikeph52 requested a review from peterjc as a code owner October 26, 2025 21:23

@peterjc peterjc left a comment

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.

The code changes look good, but please run black on this file.

Comment thread Tests/test_GenBank.py Outdated
],
)
gb = record.format("gb")
)

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.

Trailing whitespace - probably what black would fix, but there could be more issues.

@mikeph52

Copy link
Copy Markdown
Contributor Author

Thanks for the review, i removed the whitespaces in 04fa5e0. Locally, passes all the tests. Good day.

@peterjc

peterjc commented Oct 27, 2025

Copy link
Copy Markdown
Member

I had already fixed the trailing white space - removing the blank lines wasn't needed but doesn't hurt.

@peterjc

peterjc commented Oct 27, 2025

Copy link
Copy Markdown
Member

Running all the tests on GitHub Actions now...

@codecov

codecov Bot commented Oct 27, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.34%. Comparing base (ff152a3) to head (04fa5e0).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5090      +/-   ##
==========================================
+ Coverage   85.45%   86.34%   +0.89%     
==========================================
  Files         282      282              
  Lines       59498    59498              
==========================================
+ Hits        50842    51376     +534     
+ Misses       8656     8122     -534     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@peterjc
peterjc merged commit f3b0aba into biopython:master Oct 27, 2025
@peterjc

peterjc commented Oct 27, 2025

Copy link
Copy Markdown
Member

Thank you!

@mikeph52

Copy link
Copy Markdown
Contributor Author

Thank you for the opportunity, Greetings from Greece!

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.

test_GenBank.py invalid date warnings in test suite (that should be silenced)

2 participants