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
This commit is contained in:
Dirk Mueller 2024-02-22 09:28:02 +00:00 committed by Git OBS Bridge
parent bb1c9e6c63
commit 1694522d95
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 22 08:33:37 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Fix tests on Python 3.12
-------------------------------------------------------------------
Thu Aug 3 11:02:39 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

View File

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