From c2e7b4cffdf4f62afd40d4065765f0b608a4256c Mon Sep 17 00:00:00 2001 From: kreiserlee Date: Fri, 14 Jun 2024 10:45:13 +0800 Subject: [PATCH] fix test error --- debian/changelog | 6 ++++++ debian/patches/0008-fix-test-error.patch | 22 ++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 29 insertions(+) create mode 100644 debian/patches/0008-fix-test-error.patch diff --git a/debian/changelog b/debian/changelog index 1c01b01..336d1d2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-future (0.18.2-1-ok7) nile; urgency=medium + + * fix test error + + -- liyang Fri, 14 Jun 2024 10:44:34 +0800 + python-future (0.18.2-1-ok6) nile; urgency=medium * fix test error diff --git a/debian/patches/0008-fix-test-error.patch b/debian/patches/0008-fix-test-error.patch new file mode 100644 index 0000000..739d8b6 --- /dev/null +++ b/debian/patches/0008-fix-test-error.patch @@ -0,0 +1,22 @@ +From: kreiserlee +Date: Fri, 14 Jun 2024 10:45:13 +0800 +Subject: fix test error + +--- + src/future/utils/__init__.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/future/utils/__init__.py b/src/future/utils/__init__.py +index 46bd96d..1b5eeea 100644 +--- a/src/future/utils/__init__.py ++++ b/src/future/utils/__init__.py +@@ -61,6 +61,9 @@ PY3 = sys.version_info[0] >= 3 + PY34_PLUS = sys.version_info[0:2] >= (3, 4) + PY35_PLUS = sys.version_info[0:2] >= (3, 5) + PY36_PLUS = sys.version_info[0:2] >= (3, 6) ++PY37_PLUS = sys.version_info[0:2] >= (3, 7) ++PY38_PLUS = sys.version_info[0:2] >= (3, 8) ++PY39_PLUS = sys.version_info[0:2] >= (3, 9) + PY2 = sys.version_info[0] == 2 + PY26 = sys.version_info[0:2] == (2, 6) + PY27 = sys.version_info[0:2] == (2, 7) diff --git a/debian/patches/series b/debian/patches/series index 6570fe9..88eb98b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ 0005-fix-error-for-python3.12.patch 0006-fix-test-error.patch 0007-fix-test-error.patch +0008-fix-test-error.patch