[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] 04/04: t/ Skip when versions don’

From: Zack Weinberg
Subject: [automake-commit] 04/04: t/ Skip when versions don’t match
Date: Mon, 14 Sep 2020 08:41:59 -0400

zackw pushed a commit to branch master
in repository automake.

View the commit online:;a=commitdiff;h=626727a8ddcd1d0ec185a26dab573674d5536c32

commit 626727a8ddcd1d0ec185a26dab573674d5536c32
Author: Zack Weinberg <>
AuthorDate: Sat Sep 12 09:51:07 2020 -0400

    t/ Skip when versions don’t match
    On some operating systems ‘python’ is Python 2.x but ‘virtualenv -ppython’
    will create a virtualenv that uses Python 3.x.  This is a bug, but it’s
    not *automake’s* bug, and should not cause t/ to fail.
    Skip the test, instead of failing it, when the inner=outer version check
    (This also has nothing to do with the main goal of this patchset, it just
    annoyed me while I was testing.)
    * t/ Skip test, rather than failing it, when
      $py_version_pre != $py_version_post.
 t/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/ b/t/
index 6f4e0c0..05df22b 100644
--- a/t/
+++ b/t/
@@ -39,7 +39,8 @@ fi
 py_version_post=$(python -V)
 # Sanity check.
-test "$py_version_pre" = "$py_version_post"
+test "$py_version_pre" = "$py_version_post" \
+  || skip_ "virtualenv $py_version_post != $py_version_pre"
 cwd=$(pwd) || fatal_ "getting current working directory"
 py_version=$(python -c 'import sys; print("%u.%u" % 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]