From d563cba836e04c2a52de25e25b1666c69974826fc04f2d3bcc91ae0405feb4ba Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 26 Jan 2023 01:36:13 +0000 Subject: [PATCH] Accepting request 1061086 from home:jayvdb:branches:devel:languages:python - Remove use of deprecated py.test in tests. OBS-URL: https://build.opensuse.org/request/show/1061086 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wmctrl?expand=0&rev=6 --- python-wmctrl.changes | 5 +++++ python-wmctrl.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-wmctrl.changes b/python-wmctrl.changes index c8f9774..46a709d 100644 --- a/python-wmctrl.changes +++ b/python-wmctrl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 26 01:23:32 UTC 2023 - John Vandenberg + +- Remove use of deprecated py.test in tests. + ------------------------------------------------------------------- Fri Apr 23 18:59:14 UTC 2021 - John Vandenberg diff --git a/python-wmctrl.spec b/python-wmctrl.spec index 952858c..106481d 100644 --- a/python-wmctrl.spec +++ b/python-wmctrl.spec @@ -47,6 +47,8 @@ Python tool to programmatically control windows inside X. %prep %setup -q -n wmctrl-%{version} +sed -i 's/\(py$\|py\.test\)/pytest/g' test/test_wmctrl.py + %build %python_build @@ -69,6 +71,8 @@ xvfb-run /tmp/test_script.sh %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/wmctrl.py* +%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/wmctrl*/ %changelog