From c20a71c99f4548131e0ed33b6e832fd9908489dc Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 8 Jun 2022 21:13:06 +0800 Subject: [PATCH] tests: require a newish Python Specifically, Python 3.5 changed the return value type from inspect.getouterframes(). Anything older than that is way out of date anyway. --- tests/interactive.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/interactive.fish b/tests/interactive.fish index e90d812eb..27f86f6c8 100644 --- a/tests/interactive.fish +++ b/tests/interactive.fish @@ -53,6 +53,11 @@ end set failed +# The test here looks wrong, but False sets exit status to 0, which is what we want +if python3 -c 'import sys; exit(sys.version_info > (3, 5))' + say red "pexpect tests disabled: python3 is too old" + set pexpect_files_to_test +end if not python3 -c 'import pexpect' say red "pexpect tests disabled: `python3 -c 'import pexpect'` failed" set pexpect_files_to_test