Skip to content
Snippets Groups Projects
Commit c82eca81366d authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

py3: add guard to prevent running Python 3 tests before Python 3 was supported

parent 8a3851ba96fb
No related branches found
No related tags found
No related merge requests found
...@@ -342,6 +342,17 @@ ...@@ -342,6 +342,17 @@
self.util_hg_path = self.get_util_hg_path() self.util_hg_path = self.get_util_hg_path()
# Don't run if using Python 3 before the first real supported release
if sys.version_info[0] > 2:
message = (
"Python 3 was not supported before revision "
"59338f9561099de77c684c00f76507f11e46ebe8, skipping."
)
self.skip_suite_if_not_in_revset(
revset="59338f9561099de77c684c00f76507f11e46ebe8::",
message=message
)
# Don't run if using Rust on a revision before the Rust modulepolicy # Don't run if using Rust on a revision before the Rust modulepolicy
# was introduced # was introduced
if os.environ.get("HGMODULEPOLICY", '').startswith("rust"): if os.environ.get("HGMODULEPOLICY", '').startswith("rust"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment