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}"