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:
13
support-python-312.patch
Normal file
13
support-python-312.patch
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user