[packages/python-pytest-xdist] - disable pytest-benchmark plugin and tests failing on builders because of ptys

qboosh qboosh at pld-linux.org
Thu Apr 2 17:37:18 CEST 2020


commit e321c63e9e925b7e955ce0559d0f52739a637722
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 2 17:37:13 2020 +0200

    - disable pytest-benchmark plugin and tests failing on builders because of ptys

 python-pytest-xdist.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/python-pytest-xdist.spec b/python-pytest-xdist.spec
index 9b3b796..ecb8e0a 100644
--- a/python-pytest-xdist.spec
+++ b/python-pytest-xdist.spec
@@ -79,8 +79,10 @@ trybów wykonywania testów, jak choćby zrównoleglenie.
 %py_build
 
 %if %{with tests}
+# -p no:benchmark to avoid "PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks"
+# disable tests requiring ptys (and thus failing on builders)
 PYTHONPATH=$(pwd) \
-%{__python} -m pytest testing
+%{__python} -m pytest -p no:benchmark testing -k 'not test_keyboard_interrupt_dist and not test_fail_to_ok and not test_xfail_passes'
 %endif
 %endif
 
@@ -89,7 +91,7 @@ PYTHONPATH=$(pwd) \
 
 %if %{with tests}
 PYTHONPATH=$(pwd) \
-%{__python3} -m pytest testing
+%{__python3} -m pytest -p no:benchmark testing -k 'not test_keyboard_interrupt_dist and not test_fail_to_ok and not test_xfail_passes'
 %endif
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-xdist.git/commitdiff/e321c63e9e925b7e955ce0559d0f52739a637722



More information about the pld-cvs-commit mailing list