• Bug#1059659: pg8000: autopkgtest failure with Python 3.12

    From Graham Inggs@21:1/5 to All on Fri Dec 29 22:10:01 2023
    Source: pg8000
    Version: 1.30.3-1
    Severity: serious
    User: debian-python@lists.debian.org
    Usertags: python3.12

    Hi Maintainer

    pg8000's autopkgtests fail with Python 3.12 [1]. I've copied what I
    hope is the relevant part of the log below.

    Regards
    Graham


    [1] https://ci.debian.net/packages/p/pg8000/testing/amd64/


    49s =================================== FAILURES ===================================
    49s _________________________________ test_readme __________________________________
    49s
    49s def test_readme():
    49s failure_count, _ = doctest.testfile(
    49s str(Path("..") / "README.rst"), verbose=False, optionflags=doctest.ELLIPSIS 49s )
    49s > assert failure_count == 0
    49s E assert 301 == 0
    49s
    49s test/test_readme.py:10: AssertionError
    49s ----------------------------- Captured stdout call -----------------------------
    49s **********************************************************************
    49s File "/tmp/autopkgtest-lxc.liyep0go/downtmp/build.OAq/src/test/../README.rst",
    line 50, in README.rst
    49s Failed example:
    49s import pg8000.native
    49s Exception raised:
    49s Traceback (most recent call last):
    49s File "/usr/lib/python3.12/doctest.py", line 1359, in __run
    49s exec(compile(example.source, filename, "single",
    49s File "<doctest README.rst[0]>", line 1, in <module>
    49s import pg8000.native
    49s File "/tmp/autopkgtest-lxc.liyep0go/downtmp/build.OAq/src/pg8000/__init__.py",
    line 1, in <module>
    49s from pg8000.legacy import (
    49s File "/tmp/autopkgtest-lxc.liyep0go/downtmp/build.OAq/src/pg8000/legacy.py",
    line 6, in <module>
    49s from pg8000.converters import (
    49s File "/tmp/autopkgtest-lxc.liyep0go/downtmp/build.OAq/src/pg8000/converters.py",
    line 21, in <module>
    49s from dateutil.parser import ParserError, parse
    49s File "/usr/lib/python3/dist-packages/dateutil/parser/__init__.py",
    line 2, in <module>
    49s from ._parser import parse, parser, parserinfo, ParserError
    49s File "/usr/lib/python3/dist-packages/dateutil/parser/_parser.py",
    line 50, in <module>
    49s from .. import tz
    49s File "/usr/lib/python3/dist-packages/dateutil/tz/__init__.py",
    line 2, in <module>
    49s from .tz import *
    49s File "/usr/lib/python3/dist-packages/dateutil/tz/tz.py", line 37,
    in <module>
    49s EPOCH = datetime.datetime.utcfromtimestamp(0)
    49s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    49s DeprecationWarning: datetime.datetime.utcfromtimestamp() is
    deprecated and scheduled for removal in a future version. Use
    timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    49s **********************************************************************

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Dec 30 12:00:01 2023
    Processing control commands:

    tag -1 pending
    Bug #1059659 [src:pg8000] pg8000: autopkgtest failure with Python 3.12
    Added tag(s) pending.

    --
    1059659: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059659
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jcfp@21:1/5 to All on Sat Dec 30 12:00:01 2023
    Control: tag -1 pending

    Hello,

    Bug #1059659 in pg8000 reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/pg8000/-/commit/cc8e6612d1ea4967b9e7af9e299fea1df2cd9722

    ------------------------------------------------------------------------ Patches: add 0004 to make testsuite deprecation warnings nonfatal. (Closes: #1059659)
    ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1059659

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Dec 30 13:00:01 2023
    This is a multi-part message in MIME format...

    Your message dated Sat, 30 Dec 2023 11:50:12 +0000
    with message-id <E1rJXr2-00AiwR-P1@fasolo.debian.org>
    and subject line Bug#1059659: fixed in pg8000 1.30.3-2
    has caused the Debian Bug report #1059659,
    regarding pg8000: autopkgtest failure with Python 3.12
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1059659: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059659
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 29 Dec 2023 21:02:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-5.8 required=4.0 tests=BAYES_00,FROMDEVELOPER,
    RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 45; hammy, 150; neutral, 97; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--autopkgtest,
    0.000-+--U*debian-python, 0.000-+--debianpythonlistsdebianorg,
    0.000-+--debian-python@lists.debian.org
    Return-path: <ginggs@debian.org>
    Received: from mx0.riseup.net ([198.252.153.6]:56380)
    by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
    (Exim 4.94.2)
    (enve