commit e920318ad76aaec078855018014e26df23a07b69
Author: Jakub Bogusz <[email protected]>
Date:   Thu Feb 4 20:21:55 2021 +0100

    - disable also tests requiring ptys (not available on builders)

 python-pytest.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/python-pytest.spec b/python-pytest.spec
index a86eb42..b55dbb3 100644
--- a/python-pytest.spec
+++ b/python-pytest.spec
@@ -144,8 +144,10 @@ export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 
 %if %{with tests}
 # test_pdb_custom_cls_with_settrace fails without preinstalled pytest
+# test_cache_writefail_permissions, test_cache_failure_warns makes tests 
unreliable due to post-test cleanup failures
+# test_pytester.py, test_terminal.py, test_unittest.py need ptys to spawn 
processes with terminal
 PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest -k 'not test_pdb and not 
test_cache_writefail_permissions and not test_cache_failure_warns' testing
+%{__python} -m pytest -k 'not (test_pdb or test_cache_writefail_permissions or 
test_cache_failure_warns or test_pytester or test_terminal or test_unittest)' 
testing
 %endif
 %endif
 
@@ -155,8 +157,10 @@ PYTHONPATH=$(pwd)/src \
 %if %{with tests}
 # test_pdb_custom_cls_with_settrace fails without preinstalled pytest
 # test_pdb_* which spawn pdb hang under some unclear conditions
+# test_cache_writefail_permissions, test_cache_failure_warns makes tests 
unreliable due to post-test cleanup failures
+# test_pytester.py, test_terminal.py, test_unittest.py need ptys to spawn 
processes with terminal
 PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest -k 'not test_pdb and not 
test_cache_writefail_permissions and not test_cache_failure_warns' testing
+%{__python3} -m pytest -k 'not (test_pdb or test_cache_writefail_permissions 
or test_cache_failure_warns or test_pytester or test_terminal or 
test_unittest)' testing
 %endif
 %endif
 
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to