15
0
forked from pool/python-bidict

- Add patch support-python-312.patch:

* Cope with different TypeError raised.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=31
This commit is contained in:
2024-02-06 05:39:30 +00:00
committed by Git OBS Bridge
parent 8e7865d1a4
commit 45d6733096
3 changed files with 24 additions and 1 deletions

13
support-python-312.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: bidict-0.22.1/tests/test_class_relationships.py
===================================================================
--- bidict-0.22.1.orig/tests/test_class_relationships.py
+++ bidict-0.22.1/tests/test_class_relationships.py
@@ -123,7 +123,7 @@ def test_issubclass_internal() -> None:
def test_abstract_bimap_init_fails() -> None:
"""Instantiating `AbstractBimap` should fail with expected TypeError."""
- excmatch = r"Can't instantiate abstract class AbstractBimap with abstract methods .* inverse"
+ excmatch = r"Can't instantiate abstract class AbstractBimap with.*abstract methods .*inverse"
with pytest.raises(TypeError, match=excmatch):
AbstractBimap() # type: ignore