Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1189189
| From | Colin Watson <cjwatson@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as default |
| Date | 2024-03-05 19:20 +0100 |
| Message-ID | <IeHyp-eDo8-1@gated-at.bofh.it> (permalink) |
| References | <I1yMh-6mu9-3@gated-at.bofh.it> <I1yMh-6mu9-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Control: tag -1 moreinfo
On Mon, Jan 29, 2024 at 01:10:20PM +0100, Matthias Klose wrote:
> 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'
While it looks like this was fixed upstream in
https://github.com/marselester/json-log-formatter/commit/74f04ee4f6aa8e461fcb2d688459888b7279fc73
and I guess we could cherry-pick that, I also can't reproduce this
failure in current unstable with Python 3.12. Can you still reproduce
this?
Thanks,
--
Colin Watson (he/him) [cjwatson@debian.org]
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as default Colin Watson <cjwatson@debian.org> - 2024-03-05 19:20 +0100 Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as default Colin Watson <cjwatson@debian.org> - 2024-03-07 21:00 +0100
csiph-web