# HG changeset patch # User Raphaël Gomès <rgomes@octobus.net> # Date 1571835069 -7200 # Wed Oct 23 14:51:09 2019 +0200 # Node ID c82eca81366de9b16800bd2c00f28a3c9f36750f # Parent 8a3851ba96fb0a85b928328b881e0c54ad866fd5 py3: add guard to prevent running Python 3 tests before Python 3 was supported diff --git a/benchmarks/utils/__init__.py b/benchmarks/utils/__init__.py --- a/benchmarks/utils/__init__.py +++ b/benchmarks/utils/__init__.py @@ -342,6 +342,17 @@ 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 # was introduced if os.environ.get("HGMODULEPOLICY", '').startswith("rust"):