Skip to content

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

Closed

Description

@peterjc
test_GenBank ... /Users/peterjc/repositories/biopython/Bio/SeqIO/InsdcIO.py:599: BiopythonWarning: Annotation 'Sequence Read Archive: SRX001885, SRX001121, SRX001531, SRX001530, SRX001529' too long
  warnings.warn(f"Annotation {text!r} too long", BiopythonWarning)
/Users/peterjc/repositories/biopython/Bio/SeqIO/InsdcIO.py:652: BiopythonWarning: Invalid date format provided 'invalid date', using default '01-JAN-1980'
  warnings.warn(
/Users/peterjc/repositories/biopython/Bio/SeqIO/InsdcIO.py:652: BiopythonWarning: Invalid date format provided '29-2-1981', using default '01-JAN-1980'
  warnings.warn(
/Users/peterjc/repositories/biopython/Bio/SeqIO/InsdcIO.py:652: BiopythonWarning: Invalid date format provided '35-1-2018', using default '01-JAN-1980'
  warnings.warn(
/Users/peterjc/repositories/biopython/Bio/SeqIO/InsdcIO.py:652: BiopythonWarning: Invalid date format provided '1-1-80', using default '01-JAN-1980'
  warnings.warn(
/Users/peterjc/repositories/biopython/Bio/SeqIO/InsdcIO.py:652: BiopythonWarning: Invalid date format provided '1-9-99', using default '01-JAN-1980'
  warnings.warn(
/Users/peterjc/repositories/biopython/Bio/SeqIO/InsdcIO.py:652: BiopythonWarning: Invalid date format provided ['24-DEC-2015', '25-JAN-2016'], using default '01-JAN-1980'
  warnings.warn(
ok

Likely a side effect from #4977, missed in review.

Activity

  1. added
    good first issue
    on Oct 15, 2025
  2. peterjc commented on Oct 15, 2025

    @peterjc
    MemberAuthor

    The fix should be something like 758c6ae or 6fda151 but where these warnings are triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions