test/depsolve: use strings for pytest.skip()
The pytest.skip() argument must be a string. Calling it with an exception produces an error.
This commit is contained in:
parent
ef16cbf04f
commit
d1dbcc20cf
1 changed files with 3 additions and 3 deletions
|
|
@ -1250,7 +1250,7 @@ def test_depsolve(tmp_path, repo_servers, dnf_config, detect_fn, test_case):
|
||||||
try:
|
try:
|
||||||
detect_fn()
|
detect_fn()
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
pytest.skip(e)
|
pytest.skip(str(e))
|
||||||
|
|
||||||
# pylint: disable=fixme
|
# pylint: disable=fixme
|
||||||
# TODO: remove this once dnf5 implementation is fixed
|
# TODO: remove this once dnf5 implementation is fixed
|
||||||
|
|
@ -1314,7 +1314,7 @@ def test_dump(tmp_path, repo_servers, dnf_config, detect_fn, test_case):
|
||||||
try:
|
try:
|
||||||
detect_fn()
|
detect_fn()
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
pytest.skip(e)
|
pytest.skip(str(e))
|
||||||
|
|
||||||
repo_servers_copy = repo_servers.copy()
|
repo_servers_copy = repo_servers.copy()
|
||||||
if "additional_servers" in test_case:
|
if "additional_servers" in test_case:
|
||||||
|
|
@ -1361,7 +1361,7 @@ def test_search(tmp_path, repo_servers, dnf_config, detect_fn, test_case):
|
||||||
try:
|
try:
|
||||||
detect_fn()
|
detect_fn()
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
pytest.skip(e)
|
pytest.skip(str(e))
|
||||||
|
|
||||||
repo_servers_copy = repo_servers.copy()
|
repo_servers_copy = repo_servers.copy()
|
||||||
if "additional_servers" in test_case:
|
if "additional_servers" in test_case:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue