From b496983b0f4e140443468a4bbd2b5c737bb8649b6fb08b11852b057e0cdcdc8c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 28 Jan 2025 01:53:55 +0000 Subject: [PATCH] Accepting request 1240606 from home:mcalabkova:branches:devel:languages:python - Tweak support-python-313.patch to adapt to yet another change in argparse OBS-URL: https://build.opensuse.org/request/show/1240606 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs?expand=0&rev=24 --- python-calmjs.changes | 6 ++++++ support-python-313.patch | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-calmjs.changes b/python-calmjs.changes index 2a21148..c07a42f 100644 --- a/python-calmjs.changes +++ b/python-calmjs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 27 16:46:53 UTC 2025 - Markéta Machová + +- Tweak support-python-313.patch to adapt to yet another change + in argparse + ------------------------------------------------------------------- Tue Jan 7 03:37:22 UTC 2025 - Steve Kowalik diff --git a/support-python-313.patch b/support-python-313.patch index be0631a..dab784a 100644 --- a/support-python-313.patch +++ b/support-python-313.patch @@ -46,7 +46,7 @@ Index: calmjs-3.4.4/src/calmjs/tests/test_argparse.py - self.assertIn("(choose from '1', '2', '3')", sys.stderr.getvalue()) + msg = "(choose from '1', '2', '3')" -+ if sys.version_info[:2] == (3, 12): ++ if sys.version_info[:2] >= (3, 12): + msg = "(choose from 1, 2, 3)" + self.assertIn(msg, sys.stderr.getvalue())