From 1694522d958ea5eae35bcdf4741639c97350eb3619ac02221c27d763ac7ca056 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 22 Feb 2024 09:28:02 +0000 Subject: [PATCH] Accepting request 1149092 from home:mcalabkova:branches:devel:languages:python - Fix tests on Python 3.12 OBS-URL: https://build.opensuse.org/request/show/1149092 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fb-re2?expand=0&rev=9 --- python-fb-re2.changes | 5 +++++ python-fb-re2.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-fb-re2.changes b/python-fb-re2.changes index c4942bb..9e3591c 100644 --- a/python-fb-re2.changes +++ b/python-fb-re2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 22 08:33:37 UTC 2024 - Markéta Machová + +- Fix tests on Python 3.12 + ------------------------------------------------------------------- Thu Aug 3 11:02:39 UTC 2023 - Daniel Garcia diff --git a/python-fb-re2.spec b/python-fb-re2.spec index 217404e..6c7c2a5 100644 --- a/python-fb-re2.spec +++ b/python-fb-re2.spec @@ -1,7 +1,7 @@ # # spec file for package python-fb-re2 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -40,6 +40,8 @@ Python wrapper for Google's RE2 %prep %autosetup -p1 -n pyre2-%{version} +# fix tests on py312 +sed -i 's/assertRaisesRegexp/assertRaisesRegex/g' tests/test_match.py %build export CFLAGS="%{optflags}"