From 75126a722868e5e0a4ae4ff1d5f31bde8182177d Mon Sep 17 00:00:00 2001 From: Shane Lee Date: Wed, 15 May 2024 11:34:25 -0600 Subject: [PATCH] Remove try/except --- .../functional/modules/test_chocolatey.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/pytests/functional/modules/test_chocolatey.py b/tests/pytests/functional/modules/test_chocolatey.py index acf027fd6e6..c3f40693ffd 100644 --- a/tests/pytests/functional/modules/test_chocolatey.py +++ b/tests/pytests/functional/modules/test_chocolatey.py @@ -46,17 +46,19 @@ def test_bootstrap(chocolatey, clean): # if the test fails result = chocolatey.bootstrap() # Let's run it outside the try/except to see what the error is - try: - chocolatey_version = chocolatey.chocolatey_version(refresh=True) - except CommandExecutionError: - chocolatey_version = None + chocolatey_version = chocolatey.chocolatey_version(refresh=True) + # try: + # chocolatey_version = chocolatey.chocolatey_version(refresh=True) + # except CommandExecutionError: + # chocolatey_version = None assert chocolatey_version is not None def test_bootstrap_version(chocolatey, clean): chocolatey.bootstrap(version="1.4.0") - try: - chocolatey_version = chocolatey.chocolatey_version(refresh=True) - except CommandExecutionError: - chocolatey_version = None + chocolatey_version = chocolatey.chocolatey_version(refresh=True) + # try: + # chocolatey_version = chocolatey.chocolatey_version(refresh=True) + # except CommandExecutionError: + # chocolatey_version = None assert chocolatey_version == "1.4.0"