python-lexicon/support-pytest-8.patch
Steve Kowalik b068f1ac91 - Switch to pyproject and autosetup macros.
- Add patch support-pytest-8.patch:
  * Use new "setup_method" to support pytest >= 8.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lexicon?expand=0&rev=14
2024-05-14 02:09:14 +00:00

23 lines
735 B
Diff

Index: lexicon-2.0.1/tests/alias_dict.py
===================================================================
--- lexicon-2.0.1.orig/tests/alias_dict.py
+++ lexicon-2.0.1/tests/alias_dict.py
@@ -36,7 +36,7 @@ class AliasDict_:
ad.unalias("lol no")
class aliases_of:
- def setup(self):
+ def setup_method(self):
self.ad = AliasDict()
def returns_list_of_aliases_for_given_real_key(self):
@@ -162,7 +162,7 @@ class AliasDict_:
class aliases_are_not_real_keys:
"aliases are not real keys"
- def setup(self):
+ def setup_method(self):
self.a = AliasDict({"key1": "val1", "key2": "val2"})
self.a.alias("myalias", "key1")