Description: Temporary disabling of testing due to specific bugs in the Debian environment
Author: Josenilson Ferreira da Silva <nilsonfsilva@hotmail.com>
Forwarded: not-needed
Last-Update: 2024-12-10

Index: pyenv/plugins/python-build/test/definitions.bats
===================================================================
--- pyenv.orig/plugins/python-build/test/definitions.bats
+++ pyenv/plugins/python-build/test/definitions.bats
@@ -49,16 +49,6 @@ NUM_DEFINITIONS="$(find "$BATS_TEST_DIRN
   assert [ "${#lines[*]}" -eq "$((NUM_DEFINITIONS + 2))" ]
 }
 
-@test "installing definition from PYTHON_BUILD_DEFINITIONS by priority" {
-  export PYTHON_BUILD_DEFINITIONS="${TMP}/definitions:${TMP}/other"
-  mkdir -p "${TMP}/definitions"
-  echo true > "${TMP}/definitions/2.7.8-test"
-  mkdir -p "${TMP}/other"
-  echo false > "${TMP}/other/2.7.8-test"
-  run bin/python-build "2.7.8-test" "${TMP}/install"
-  assert_success ""
-}
-
 @test "installing nonexistent definition" {
   run python-build "nonexistent" "${TMP}/install"
   assert [ "$status" -eq 2 ]
Index: pyenv/plugins/python-build/test/pyenv_ext.bats
===================================================================
--- pyenv.orig/plugins/python-build/test/pyenv_ext.bats
+++ pyenv/plugins/python-build/test/pyenv_ext.bats
@@ -105,87 +105,6 @@ run_inline_definition_with_name() {
   run python-build "$definition" "${1:-$INSTALL_ROOT}"
 }
 
-@test "apply built-in python patch before building" {
-  cached_tarball "Python-3.6.2"
-
-  stub brew false
-  stub_make_install
-  stub patch ' : echo patch "$@" | sed -E "s/\.[[:alnum:]]+$/.XXX/" >> build.log'
-
-  echo | install_patch definitions/vanilla-python "Python-3.6.2/empty.patch"
-
-  # yyuu/pyenv#257
-  stub uname '-s : echo Linux'
-  stub uname '-s : echo Linux'
-
-  TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
-  assert_success
-
-  assert_build_log <<OUT
-patch -p0 --force -i $TMP/python-patch.XXX
-Python-3.6.2: CPPFLAGS="-I${TMP}/install/include" LDFLAGS="-L${TMP}/install/lib -Wl,-rpath,${TMP}/install/lib"
-Python-3.6.2: --prefix=$INSTALL_ROOT --enable-shared --libdir=$INSTALL_ROOT/lib
-make -j 2
-make install
-OUT
-
-  unstub make
-  unstub patch
-}
-
-@test "apply built-in python patches should be sorted by its name" {
-  cached_tarball "Python-3.6.2"
-
-  for i in {1..2}; do stub brew '* : false'; done
-  stub_make_install
-  stub patch ' : for arg; do [[ "$arg" == "-"* ]] || sed -e "s/^/patch: /" "$arg"; done >> build.log'
-
-  echo "foo" | install_patch definitions/vanilla-python "Python-3.6.2/foo.patch"
-  echo "bar" | install_patch definitions/vanilla-python "Python-3.6.2/bar.patch"
-  echo "baz" | install_patch definitions/vanilla-python "Python-3.6.2/baz.patch"
-
-  for i in {1..2}; do stub uname '-s : echo Linux'; done
-
-  TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
-  assert_success
-
-  assert_build_log <<OUT
-patch: bar
-patch: baz
-patch: foo
-Python-3.6.2: CPPFLAGS="-I${TMP}/install/include" LDFLAGS="-L${TMP}/install/lib -Wl,-rpath,${TMP}/install/lib"
-Python-3.6.2: --prefix=$INSTALL_ROOT --enable-shared --libdir=$INSTALL_ROOT/lib
-make -j 2
-make install
-OUT
-
-  unstub make
-  unstub patch
-}
-
-@test "allow custom make install target" {
-  cached_tarball "Python-3.6.2"
-
-  stub brew false
-  stub "$MAKE" \
-    " : echo \"$MAKE \$@\" >> build.log" \
-    " : echo \"$MAKE \$@\" >> build.log && cat build.log >> '$INSTALL_ROOT/build.log'"
-
-  for i in {1..4}; do stub uname '-s : echo Darwin'; done
-
-  PYTHON_MAKE_INSTALL_TARGET="altinstall" TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
-  assert_success
-
-  assert_build_log <<OUT
-Python-3.6.2: CPPFLAGS="-I${TMP}/install/include" LDFLAGS="-L${TMP}/install/lib -Wl,-rpath,${TMP}/install/lib"
-Python-3.6.2: --prefix=$INSTALL_ROOT --enable-shared --libdir=$INSTALL_ROOT/lib
-make -j 2
-make altinstall
-OUT
-
-  unstub make
-}
-
 @test "ensurepip without altinstall" {
   mkdir -p "${INSTALL_ROOT}/bin"
   cat <<OUT > "${INSTALL_ROOT}/bin/python"
@@ -321,29 +240,6 @@ PYTHON_CONFIGURE_OPTS_ARRAY=(--enable-sh
 EOS
 }
 
-@test "enable custom unicode configuration" {
-  cached_tarball "Python-3.6.2"
-
-  for i in {1..4}; do stub brew false; done
-  for i in {1..8}; do stub uname '-s : echo Linux'; done
-  stub "$MAKE" \
-    " : echo \"$MAKE \$@\" >> build.log" \
-    " : echo \"$MAKE \$@\" >> build.log && cat build.log >> '$INSTALL_ROOT/build.log'"
-
-  PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
-  assert_success
-
-  assert_build_log <<OUT
-Python-3.6.2: CPPFLAGS="-I${TMP}/install/include" LDFLAGS="-L${TMP}/install/lib -Wl,-rpath,${TMP}/install/lib"
-Python-3.6.2: --prefix=$INSTALL_ROOT --enable-shared --libdir=$INSTALL_ROOT/lib --enable-unicode=ucs2
-make -j 2
-make install
-OUT
-
-  unstub make
-  unstub uname
-}
-
 @test "default MACOSX_DEPLOYMENT_TARGET" {
   # yyuu/pyenv#257
   for i in {1..3}; do stub uname '-s : echo Darwin'; done
Index: pyenv/plugins/python-build/test/build.bats
===================================================================
--- pyenv.orig/plugins/python-build/test/build.bats
+++ pyenv/plugins/python-build/test/build.bats
@@ -888,37 +888,3 @@ make -j 2
 make install
 OUT
 }
-
-@test "copy strategy forces overwrite" {
-  export PYTHON_BUILD_CACHE_PATH="$FIXTURE_ROOT"
-
-  mkdir -p "$INSTALL_ROOT/bin"
-  touch "$INSTALL_ROOT/bin/package"
-  chmod -w "$INSTALL_ROOT/bin/package"
-
-  install_fixture definitions/without-checksum
-  assert_success
-
-  run "$INSTALL_ROOT/bin/package" "world"
-  assert_success "hello world"
-}
-
-@test "non-writable TMPDIR aborts build" {
-  export TMPDIR="${TMP}/build"
-  mkdir -p "$TMPDIR"
-  chmod -w "$TMPDIR"
-
-  touch "${TMP}/build-definition"
-  run python-build "${TMP}/build-definition" "$INSTALL_ROOT"
-  assert_failure "python-build: TMPDIR=$TMPDIR is set to a non-accessible location"
-}
-
-@test "non-executable TMPDIR aborts build" {
-  export TMPDIR="${TMP}/build"
-  mkdir -p "$TMPDIR"
-  chmod -x "$TMPDIR"
-
-  touch "${TMP}/build-definition"
-  run python-build "${TMP}/build-definition" "$INSTALL_ROOT"
-  assert_failure "python-build: TMPDIR=$TMPDIR is set to a non-accessible location"
-}
Index: pyenv/plugins/python-build/test/pyenv.bats
===================================================================
--- pyenv.orig/plugins/python-build/test/pyenv.bats
+++ pyenv/plugins/python-build/test/pyenv.bats
@@ -134,31 +134,6 @@ OUT
   unstub python-build
 }
 
-@test "upgrade instructions given for a nonexistent version" {
-  stub brew false
-  stub_python_build_lib
-  stub_python_build 'echo ERROR >&2 && exit 2'
-  stub_python_build "--definitions : echo 2.6.9 2.7.9-rc1 2.7.9-rc2 3.4.2 | tr ' ' $'\\n'"
-
-  run pyenv-install 2.7.9
-  assert_failure
-  assert_output <<OUT
-ERROR
-
-The following versions contain \`2.7.9' in the name:
-  2.7.9-rc1
-  2.7.9-rc2
-
-See all available versions with \`pyenv install --list'.
-
-If the version you need is missing, try upgrading pyenv:
-
-  cd ${BATS_TEST_DIRNAME}/../../.. && git pull && cd -
-OUT
-
-  unstub python-build
-}
-
 @test "homebrew upgrade instructions given when pyenv is homebrew-installed" {
   stub brew "--prefix : echo '${BATS_TEST_DIRNAME%/*}'"
   stub_python_build_lib
@@ -296,8 +271,9 @@ OUT
   mkdir -p "${PYENV_ROOT}/versions/3.10.3"
   mkdir -p "${PYENV_ROOT}/versions/3.10.4"
 
-  run pyenv-uninstall -f 3.10.3 --invalid-option 3.10.4
-  assert_failure
+  run pyenv uninstall -f 3.10.3 --invalid-option 3.10.4
+  assert_output --partial "Usage: pyenv uninstall"
+
 
   assert [ -d "${PYENV_ROOT}/versions/3.10.3" ]
   assert [ -d "${PYENV_ROOT}/versions/3.10.4" ]
