aports/testing/py3-glob2/pytest8.patch
Celeste 207c0be6cc testing/py3-glob2: fix pytest 8 compatibility
tests are now failing without this adjustment
2024-07-13 16:37:23 +00:00

22 lines
494 B
Diff

Bug-report: https://github.com/miracle2k/python-glob2/issues/30
--- a/test.py
+++ b/test.py
@@ -46,7 +46,7 @@
class BaseTest(object):
- def setup(self):
+ def setup_method(self):
self.basedir = tempfile.mkdtemp()
self._old_cwd = os.getcwd()
os.chdir(self.basedir)
@@ -56,7 +56,7 @@
def setup_files(self):
pass
- def teardown(self):
+ def teardown_method(self):
os.chdir(self._old_cwd)
shutil.rmtree(self.basedir)