Source: python-pythonjsonlogger
Version: 3.0.0-2
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13

This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Presumably this is fixed upstream, as they now include 3.13 in their CI.

Log snippet:

   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pythonjsonlogger/build; python3.13 -m 
pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pythonjsonlogger/build
configfile: pyproject.toml
plugins: typeguard-4.3.0
collected 20 items

tests/test_jsonlogger.py ...........F........                            [100%]

=================================== FAILURES ===================================
___________ TestJsonLogger.test_json_default_encoder_with_timestamp ____________

self = <tests.test_jsonlogger.TestJsonLogger 
testMethod=test_json_default_encoder_with_timestamp>
time_mock = <MagicMock name='time' id='281473815752928'>

    @unittest.mock.patch("time.time", return_value=1500000000.0)
    def test_json_default_encoder_with_timestamp(self, time_mock):
        fr = jsonlogger.JsonFormatter(timestamp=True)
        self.log_handler.setFormatter(fr)
    
        self.log.info("Hello")
    
>       self.assertTrue(time_mock.called)
E       AssertionError: False is not true

tests/test_jsonlogger.py:177: AssertionError
------------------------------ Captured log call -------------------------------
INFO     logging-test-30:test_jsonlogger.py:175 Hello
=========================== short test summary info ============================
FAILED 
tests/test_jsonlogger.py::TestJsonLogger::test_json_default_encoder_with_timestamp
========================= 1 failed, 19 passed in 0.05s =========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pythonjsonlogger/build; python3.13 -m 
pytest tests
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pythonjsonlogger/build; python3.12 -m 
pytest tests
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pythonjsonlogger/build
configfile: pyproject.toml
plugins: typeguard-4.3.0
collected 20 items

tests/test_jsonlogger.py ....................                            [100%]

============================== 20 passed in 0.04s ==============================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 
3.12" returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-19T06:57:45Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/788150/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to