diff -Nru python-future-0.18.2/debian/changelog python-future-0.18.2/debian/changelog --- python-future-0.18.2/debian/changelog 2023-01-25 00:40:55.000000000 -0800 +++ python-future-0.18.2/debian/changelog 2023-09-15 15:33:03.000000000 -0700 @@ -1,3 +1,9 @@ +python-future (0.18.2-6ubuntu2) mantic; urgency=medium + + * Fix build failure due to failing pytest case (LP: #2036292) + + -- cpete Fri, 15 Sep 2023 15:33:03 -0700 + python-future (0.18.2-6ubuntu1) lunar; urgency=medium * SECURITY UPDATE: ReDOS through Set-Cookie header diff -Nru python-future-0.18.2/debian/patches/fixed-bytes-unit-test-fail-on-python-3.11.patch python-future-0.18.2/debian/patches/fixed-bytes-unit-test-fail-on-python-3.11.patch --- python-future-0.18.2/debian/patches/fixed-bytes-unit-test-fail-on-python-3.11.patch 1969-12-31 16:00:00.000000000 -0800 +++ python-future-0.18.2/debian/patches/fixed-bytes-unit-test-fail-on-python-3.11.patch 2023-09-15 15:33:03.000000000 -0700 @@ -0,0 +1,19 @@ +Description: Fixes failing compile null bytes unit test on Python 3.11 +Author: Chris Peterson +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-future/+bug/2036292 +Bug: https://github.com/PythonCharmers/python-future/pull/619 + +--- a/tests/test_future/test_builtins.py ++++ b/tests/test_future/test_builtins.py +@@ -524,8 +524,9 @@ + self.assertRaises(TypeError, compile) + self.assertRaises(ValueError, compile, 'print(42)\n', '', 'badmode') + self.assertRaises(ValueError, compile, 'print(42)\n', '', 'single', 0xff) +- # Raises TypeError in Python < v3.5, ValueError in v3.5: +- self.assertRaises((TypeError, ValueError), compile, chr(0), 'f', 'exec') ++ # Raises TypeError in Python < v3.5, ValueError in v3.5-1.10, and a ++ # SyntaxError in 3.11=<: ++ self.assertRaises((TypeError, ValueError, SyntaxError), compile, chr(0), 'f', 'exec') + self.assertRaises(TypeError, compile, 'pass', '?', 'exec', + mode='eval', source='0', filename='tmp') + compile('print("\xe5")\n', '', 'exec') diff -Nru python-future-0.18.2/debian/patches/series python-future-0.18.2/debian/patches/series --- python-future-0.18.2/debian/patches/series 2023-01-25 00:40:55.000000000 -0800 +++ python-future-0.18.2/debian/patches/series 2023-09-15 15:33:03.000000000 -0700 @@ -5,3 +5,4 @@ #Python3.7-support.patch no-dummy-thread.patch CVE-2022-40899.patch +fixed-bytes-unit-test-fail-on-python-3.11.patch