forked from pool/python-bidict
* 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
14 lines
712 B
Diff
14 lines
712 B
Diff
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
|
|
|