Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.rc > #355062 > unrolled thread
| Started by | Matthias Klose <doko@debian.org> |
|---|---|
| First post | 2024-01-29 13:20 +0100 |
| Last post | 2024-03-07 22:00 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.bugs.rc
Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as default Matthias Klose <doko@debian.org> - 2024-01-29 13:20 +0100
Processed: Re: Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as default "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-03-05 19:20 +0100
Bug#1061754: marked as done (python-json-log-formatter ftbfs with Python 3.12 as default) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-03-07 22:00 +0100
| From | Matthias Klose <doko@debian.org> |
|---|---|
| Date | 2024-01-29 13:20 +0100 |
| Subject | Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as default |
| Message-ID | <I1yMh-6mu9-3@gated-at.bofh.it> |
Package: src:python-json-log-formatter
Version: 0.5.2-2
Severity: serious
Tags: sid trixie ftbfs
User: debian-python@lists.debian.org
Usertags: python3.12
With python3-defaults from experimental, the package fails to build:
[...]
============================= test session starts
==============================
platform linux -- Python 3.12.1, pytest-7.4.4, pluggy-1.4.0
cachedir: .tox/py312/.pytest_cache
rootdir: /<<PKGBUILDDIR>>
collected 29 items
tests.py ...FF........................
=================================== FAILURES
===================================
_
JSONFormatterTest.test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided
_
self = <tests.JSONFormatterTest
testMethod=test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided>
def
test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided(self):
logger.info('Sign up', extra={'fizz': 'bazz'})
json_record = json.loads(log_buffer.getvalue())
expected_fields = set([
'message',
'time',
'fizz',
])
> self.assertEqual(set(json_record), expected_fields)
E AssertionError: Items in the first set but not the second:
E 'taskName'
tests.py:72: AssertionError
------------------------------ Captured log call
-------------------------------
INFO test:tests.py:65 Sign up
_
JSONFormatterTest.test_message_and_time_are_in_json_record_when_extra_is_blank
_
self = <tests.JSONFormatterTest
testMethod=test_message_and_time_are_in_json_record_when_extra_is_blank>
def test_message_and_time_are_in_json_record_when_extra_is_blank(self):
logger.info('Sign up')
json_record = json.loads(log_buffer.getvalue())
expected_fields = set([
'message',
'time',
])
> self.assertEqual(set(json_record), expected_fields)
E AssertionError: Items in the first set but not the second:
E 'taskName'
tests.py:62: AssertionError
------------------------------ Captured log call
-------------------------------
INFO test:tests.py:56 Sign up
=============================== warnings summary
===============================
tests.py: 28 warnings
/<<PKGBUILDDIR>>/json_log_formatter/__init__.py:123:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
extra['time'] = datetime.utcnow()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info
============================
FAILED
tests.py::JSONFormatterTest::test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided
FAILED
tests.py::JSONFormatterTest::test_message_and_time_are_in_json_record_when_extra_is_blank
================== 2 failed, 27 passed, 28 warnings in 0.17s
===================
py312: exit 1 (0.36 seconds) /<<PKGBUILDDIR>>> pytest -s tests.py pid=5939
[toc] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2024-03-05 19:20 +0100 |
| Subject | Processed: Re: Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as default |
| Message-ID | <IeHyq-eDo8-5@gated-at.bofh.it> |
| In reply to | #355062 |
Processing control commands: > tag -1 moreinfo Bug #1061754 [src:python-json-log-formatter] python-json-log-formatter ftbfs with Python 3.12 as default Added tag(s) moreinfo. -- 1061754: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061754 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2024-03-07 22:00 +0100 |
| Subject | Bug#1061754: marked as done (python-json-log-formatter ftbfs with Python 3.12 as default) |
| Message-ID | <Ift0l-f6ia-9@gated-at.bofh.it> |
| In reply to | #355062 |
[Multipart message — attachments visible in raw view] — view raw
Your message dated Thu, 07 Mar 2024 20:52:51 +0000 with message-id <E1riKjT-00F4IT-Aa@fasolo.debian.org> and subject line Bug#1061754: fixed in python-json-log-formatter 0.5.2-3 has caused the Debian Bug report #1061754, regarding python-json-log-formatter ftbfs with Python 3.12 as default 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.) -- 1061754: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061754 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.rc
csiph-web