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.
This commit is contained in:
David Adam 2022-06-08 21:13:06 +08:00
parent d25c57ae05
commit c20a71c99f

View File

@ -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