File 0001-fix_TestEMRutils.test_which_with_existing_command.patch of Package aws-cli-2

From 818474c57c3a915480f9d0a2040d59fe07f6b79f Mon Sep 17 00:00:00 2001
From: Dominik Wombacher <dominik@wombacher.cc>
Date: Fri, 10 May 2024 15:03:42 +0000
Subject: [PATCH] fix(v2): Patch -
 TestEMRutils.test_which_with_existing_command. Include 'python3' as valid
 command

---
 tests/unit/customizations/emr/test_emr_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unit/customizations/emr/test_emr_utils.py b/tests/unit/customizations/emr/test_emr_utils.py
index c634b8ca3..a14ec5d6c 100644
--- a/tests/unit/customizations/emr/test_emr_utils.py
+++ b/tests/unit/customizations/emr/test_emr_utils.py
@@ -16,7 +16,7 @@ from awscli.customizations.emr.emrutils import which
 
 class TestEMRutils:
     def test_which_with_existing_command(self):
-        pythonPath = which('python') or which('python.exe')
+        pythonPath = which('python') or which('python3') or which('python3.11') or which('python.exe')
         assert pythonPath is not None
 
     def test_which_with_non_existing_command(self):
-- 
2.51.0

openSUSE Build Service is sponsored by