Skip to content
Snippets Groups Projects
Commit a08aef46 authored by Thomas Goirand's avatar Thomas Goirand
Browse files

Add py3.12-repair-unit-test.patch (Closes: #1058131).

parent 738d9e46
No related branches found
No related tags found
No related merge requests found
python-pythonjsonlogger (2.0.1-4) UNRELEASED; urgency=medium
python-pythonjsonlogger (2.0.1-4) unstable; urgency=medium
[ Debian Janitor ]
* Update standards version to 4.6.2, no changes needed.
-- Debian Janitor <janitor@jelmer.uk> Sat, 07 Jan 2023 17:48:27 -0000
[ Thomas Goirand ]
* Team upload.
* Add py3.12-repair-unit-test.patch (Closes: #1058131).
-- Thomas Goirand <zigo@debian.org> Tue, 23 Jan 2024 09:05:33 +0100
python-pythonjsonlogger (2.0.1-3) unstable; urgency=medium
......
Description: Repair unit testing under Python 3.12
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1058131
Forwarded: no
Last-Update: 2024-01-23
--- python-pythonjsonlogger-2.0.1.orig/tests/tests.py
+++ python-pythonjsonlogger-2.0.1/tests/tests.py
@@ -229,7 +229,10 @@ class TestJsonLogger(unittest.TestCase):
self.logger.info(" message", extra=value)
msg = self.buffer.getvalue()
- self.assertEqual(msg, "{\"message\": \" message\", \"special\": [3.0, 8.0]}\n")
+ if sys.version_info[1] < 12:
+ self.assertEqual(msg, "{\"message\": \" message\", \"special\": [3.0, 8.0]}\n")
+ else:
+ self.assertEqual(msg, "{\"message\": \" message\", \"taskName\": null, \"special\": [3.0, 8.0]}\n")
if __name__ == '__main__':
if len(sys.argv[1:]) > 0:
py3.12-repair-unit-test.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment