From 2c61a9aa069f3971f3bcc744081cf4e87ecd7e53 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Tue, 6 May 2025 18:23:20 +0300 Subject: [PATCH] fix tests --- plugins/python-build/test/build.bats | 4 ++-- plugins/python-build/test/compiler.bats | 6 +++--- plugins/python-build/test/pyenv_ext.bats | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/python-build/test/build.bats b/plugins/python-build/test/build.bats index 95ab1fc8..d1190353 100644 --- a/plugins/python-build/test/build.bats +++ b/plugins/python-build/test/build.bats @@ -621,7 +621,7 @@ OUT cached_tarball "Python-3.6.2" stub uname '-s : echo Darwin' - for i in {1..2}; do stub sw_vers '-productVersion : echo 10.10'; done + stub sw_vers '-productVersion : echo 10.10' stub sysctl false stub_make_install @@ -648,7 +648,7 @@ OUT cached_tarball "Python-3.6.2" stub uname '-s : echo Darwin' - for i in {1..2}; do stub sw_vers '-productVersion : echo 10.10'; done + stub sw_vers '-productVersion : echo 10.10' stub sysctl '-n hw.ncpu : echo 4' stub_make_install diff --git a/plugins/python-build/test/compiler.bats b/plugins/python-build/test/compiler.bats index 998b977c..9ca1735c 100644 --- a/plugins/python-build/test/compiler.bats +++ b/plugins/python-build/test/compiler.bats @@ -10,7 +10,7 @@ export -n PYTHON_CONFIGURE_OPTS @test "require_gcc on OS X 10.9" { stub uname '-s : echo Darwin' - for i in {1..2}; do stub sw_vers '-productVersion : echo 10.9.5'; done + stub sw_vers '-productVersion : echo 10.9.5' stub gcc '--version : echo 4.2.1' @@ -32,7 +32,7 @@ OUT @test "require_gcc on OS X 10.10" { stub uname '-s : echo Darwin' - for i in {1..2}; do stub sw_vers '-productVersion : echo 10.10'; done + stub sw_vers '-productVersion : echo 10.10' stub gcc '--version : echo 4.2.1' @@ -70,7 +70,7 @@ DEF cd "$INSTALL_ROOT" stub uname '-s : echo Darwin' - for i in {1..3}; do stub sw_vers '-productVersion : echo 10.10'; done + stub sw_vers '-productVersion : echo 10.10' stub cc 'false' stub brew 'false' diff --git a/plugins/python-build/test/pyenv_ext.bats b/plugins/python-build/test/pyenv_ext.bats index 4fc46a8d..40d9e97e 100644 --- a/plugins/python-build/test/pyenv_ext.bats +++ b/plugins/python-build/test/pyenv_ext.bats @@ -347,7 +347,7 @@ OUT @test "default MACOSX_DEPLOYMENT_TARGET" { # yyuu/pyenv#257 stub uname '-s : echo Darwin' - for i in {1..2}; do stub sw_vers '-productVersion : echo 10.10'; done + stub sw_vers '-productVersion : echo 10.10' TMPDIR="$TMP" run_inline_definition <