From 7ee4ec8a7dfb75389af02bbc8002b4415d78f37b806c001f6b351d981f5f9551 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Mon, 10 Jan 2022 20:22:47 +0000 Subject: [PATCH] - Work around broken pytest macro on Leap 15.3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=19 --- python-evdev.changes | 5 +++++ python-evdev.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-evdev.changes b/python-evdev.changes index 69ccd79..e6d9314 100644 --- a/python-evdev.changes +++ b/python-evdev.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 10 20:16:20 UTC 2022 - Matthias Bach + +- Work around broken pytest macro on Leap 15.3 + ------------------------------------------------------------------- Fri Apr 9 20:28:30 UTC 2021 - Ben Greiner diff --git a/python-evdev.spec b/python-evdev.spec index 5451c42..fb9df0e 100644 --- a/python-evdev.spec +++ b/python-evdev.spec @@ -1,7 +1,7 @@ # # spec file for package python-evdev # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -57,6 +57,10 @@ subsystem. %python_expand %fdupes %{buildroot}/%{$python_sitearch} %check +%if 0%{?sle_version} == 150300 && 0%{?is_opensuse} +# Work around broken pytest macro on Leap 15.3 +PYTHONPATH=dummy +%endif %pytest_arch tests -k 'not test_uinput' %files %{python_files}