From 28956f980eab1ac75caf1a287b84b1850e28ff72b40e5705d54b36871c73d4e7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Nov 2024 14:39:08 +0000 Subject: [PATCH] - Remove unnecessary patch support-pytest-8.patch. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=67 --- python-pyudev.changes | 1 + support-pytest-8.patch | 29 ----------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 support-pytest-8.patch diff --git a/python-pyudev.changes b/python-pyudev.changes index f50eee5..f64e0c5 100644 --- a/python-pyudev.changes +++ b/python-pyudev.changes @@ -3,6 +3,7 @@ Wed Nov 6 14:37:49 UTC 2024 - Matej Cepl - Skipping test suite completely, it just doesn’t work in the limited build environment (gh#pyudev/pyudev#404). +- Remove unnecessary patch support-pytest-8.patch. ------------------------------------------------------------------- Wed May 15 04:57:43 UTC 2024 - Steve Kowalik diff --git a/support-pytest-8.patch b/support-pytest-8.patch deleted file mode 100644 index 6fa550c..0000000 --- a/support-pytest-8.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 536480579e8c1d7232725099e0a75a79950e4dcb Mon Sep 17 00:00:00 2001 -From: Steve Kowalik -Date: Wed, 15 May 2024 14:51:13 +1000 -Subject: [PATCH] Support pytest 8 changes. - -pytest 8 removed the hook that was calling nose-specific methods, such -as setup and teardown. However, there is still support for that, the -methods just have _method on the end, so change them both. ---- - tests/test_monitor.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/test_monitor.py b/tests/test_monitor.py -index cacd5040..4b49d094 100644 ---- a/tests/test_monitor.py -+++ b/tests/test_monitor.py -@@ -277,10 +277,10 @@ def make_observer(self, monitor, use_deprecated=False): - self.observer = MonitorObserver(monitor, callback=self.callback) - return self.observer - -- def setup(self): -+ def setup_method(self): - self.events = [] - -- def teardown(self): -+ def teardown_method(self): - self.events = None - - def test_deprecated_handler(self, fake_monitor, fake_monitor_device):