From bf34ad5e120687060d0bf38f33dfe664eccc6323 Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Tue, 24 Sep 2024 13:33:18 +0100 Subject: [PATCH] Include release candidates in testing --- test/qpy_compat/get_versions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/qpy_compat/get_versions.py b/test/qpy_compat/get_versions.py index bf55836b119b..a89e3b8508de 100644 --- a/test/qpy_compat/get_versions.py +++ b/test/qpy_compat/get_versions.py @@ -57,7 +57,11 @@ def available_versions_for_package(package, min_version=None, max_version=None): continue if max_version is not None and other_version >= max_version: continue - if other_version > our_version or other_version.is_prerelease: + if other_version > our_version: + continue + if other_version.pre is not None and other_version.pre[0] in ("a", "b"): + # We skip alpha and beta prereleases, but we currently want to test for + # compatibility with release candidates. continue # Note: this ignores versions that are uninstallable because we're using a Python # version that's too new, which can be a problem for the oldest Terras, especially from