From f72dd1477e363c1d3ef8a64efe967db06131755b Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 15 May 2024 19:41:10 +0100 Subject: [PATCH] There's no such thing as `pytest.skipTest` --- tests/pytests/functional/modules/test_pkg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pytests/functional/modules/test_pkg.py b/tests/pytests/functional/modules/test_pkg.py index e968b68096c..d26675265a2 100644 --- a/tests/pytests/functional/modules/test_pkg.py +++ b/tests/pytests/functional/modules/test_pkg.py @@ -405,7 +405,7 @@ def test_pkg_upgrade_has_pending_upgrades(grains, modules): Test running a system upgrade when there are packages that need upgrading """ if grains["os"] == "Arch": - pytest.skipTest("Arch moved to Python 3.8 and we're not ready for it yet") + pytest.skip("Arch moved to Python 3.8 and we're not ready for it yet") modules.pkg.upgrade() @@ -443,7 +443,7 @@ def test_pkg_upgrade_has_pending_upgrades(grains, modules): ret = modules.pkg.install(target, version=old) if not isinstance(ret, dict): if ret.startswith("ERROR"): - pytest.skipTest(f"Could not install older {target} to complete test.") + pytest.skip(f"Could not install older {target} to complete test.") # Run a system upgrade, which should catch the fact that the # targeted package needs upgrading, and upgrade it. @@ -457,7 +457,7 @@ def test_pkg_upgrade_has_pending_upgrades(grains, modules): else: ret = modules.pkg.list_upgrades() if ret == "" or ret == {}: - pytest.skipTest( + pytest.skip( "No updates available for this machine. Skipping pkg.upgrade test." ) else: