From a3b9a299c1baf440918710dcc023b068853b57b9 Mon Sep 17 00:00:00 2001 From: InvalidUsernameException Date: Thu, 2 Jan 2025 22:35:55 +0100 Subject: [PATCH] Exit with useful error when using Python 3.13 --- wpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpt b/wpt index 5712156129ffd0..b275462b5de056 100755 --- a/wpt +++ b/wpt @@ -5,6 +5,9 @@ if __name__ == "__main__": if sys.version_info < (3, 8): sys.stderr.write("wpt requires Python 3.8 or higher\n") sys.exit(1) + elif sys.version_info >= (3, 13): + sys.stderr.write("wpt is not compatible with Python 3.13 or higher yet, see https://github.com/web-platform-tests/wpt/issues/48585\n"); + sys.exit(1) from tools.wpt import wpt wpt.main()