forked from pool/python-pyudev
- Remove unnecessary patch support-pytest-8.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=67
This commit is contained in:
@@ -3,6 +3,7 @@ Wed Nov 6 14:37:49 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
|||||||
|
|
||||||
- Skipping test suite completely, it just doesn’t work in the
|
- Skipping test suite completely, it just doesn’t work in the
|
||||||
limited build environment (gh#pyudev/pyudev#404).
|
limited build environment (gh#pyudev/pyudev#404).
|
||||||
|
- Remove unnecessary patch support-pytest-8.patch.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 15 04:57:43 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed May 15 04:57:43 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
@@ -1,29 +0,0 @@
|
|||||||
From 536480579e8c1d7232725099e0a75a79950e4dcb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Steve Kowalik <steven@wedontsleep.org>
|
|
||||||
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):
|
|
Reference in New Issue
Block a user