From 37d1474bee563e4659435ab2541d23a6d1f12c08 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 22 Sep 2020 18:04:11 +0100 Subject: [PATCH] Tests: Prevent shadowing of the Python 3.7 version warning test (#1074) Previously the test for Python 3.8 version warnings was named the same as an earlier test for Python 3.7, meaning the earlier test definition was overwritten and so never run. The later test has now been renamed to the correct version, and the test ordering adjusted for consistency with the rest of the file. Closes @W-8110123@. [skip changelog] --- test/run-versions | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/run-versions b/test/run-versions index 1e1ca30..a2f2a09 100755 --- a/test/run-versions +++ b/test/run-versions @@ -140,18 +140,6 @@ testPython3_7_fail() { assertCapturedError } -testPython3_7_warn() { - compile "python3_8_warn" - if [[ $STACK = "cedar-14" ]]; then - assertCapturedError - else - assertCaptured "python-3.8.0" - assertCaptured "security update!" - assertCaptured "Installing SQLite3" - assertCapturedSuccess - fi -} - testPython3_8() { updateVersion "python3_8" $LATEST_38 compile "python3_8" @@ -166,6 +154,18 @@ testPython3_8() { fi } +testPython3_8_warn() { + compile "python3_8_warn" + if [[ $STACK = "cedar-14" ]]; then + assertCapturedError + else + assertCaptured "python-3.8.0" + assertCaptured "security update!" + assertCaptured "Installing SQLite3" + assertCapturedSuccess + fi +} + testPython3_8_fail() { compile "python3_8_fail" assertCaptured "Aborting"