From 1f90adeaa71974772c064c966d101ecf9a956fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 8 Aug 2020 13:01:59 +0200 Subject: [PATCH] Use " quotes instead of ' not to pass the \ to pytest -k The parser of -k expressions was refactored in pytest 6 and \s no longer work. The error with pytest 6.0.1: ERROR: Wrong expression passed to '-k': not test_unknown_server \ and not test_socks5_auth and not \ test_server_not_found_error_is_raised_for_invalid_hostname and not \ test_functional_noproxy_star_https and not \ test_sni_set_servername_callback and not test_not_trusted_ca and not \ test_invalid_ca_certs_path and not test_max_tls_version and not \ test_get_301_via_https and not test_client_cert_password_verified and not\ test_get_via_https and not test_min_tls_version and not\ test_client_cert_verified: at column 25: unexpected character "\" --- python-httplib2.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-httplib2.spec b/python-httplib2.spec index f739f66..ca2a740 100644 --- a/python-httplib2.spec +++ b/python-httplib2.spec @@ -85,7 +85,7 @@ popd %check pushd python3 -PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k 'not test_unknown_server \ +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k "not test_unknown_server \ and not test_socks5_auth and not \ test_server_not_found_error_is_raised_for_invalid_hostname and not \ test_functional_noproxy_star_https and not \ @@ -93,7 +93,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k 'not test_unknown_server \ test_invalid_ca_certs_path and not test_max_tls_version and not \ test_get_301_via_https and not test_client_cert_password_verified and not\ test_get_via_https and not test_min_tls_version and not\ - test_client_cert_verified' + test_client_cert_verified" popd