From 88d19e59d9e448396cfe8ab6db6c120ef04565d5 Mon Sep 17 00:00:00 2001 From: "Henrik G. Olsson" Date: Fri, 7 Nov 2025 12:41:00 -0800 Subject: [PATCH] [utils] mark update-verify-tests tests unsupported with old Python This utility uses the walrus operator introduced in Python 3.8, but this causes tests to fail in Amazon Linux 2 CI, which uses Python 3.7. Since this is not a shipped product, that doesn't really matter, and 3.7 is an ancient EOL version anyways. The premerge CI uses Python 3.9 and later, so use that as a basis, just to avoid the same issue in the future in case some Python 3.9 feature sneaks in. rdar://164151931 --- test/Utils/update-verify-tests/lit.local.cfg | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/Utils/update-verify-tests/lit.local.cfg diff --git a/test/Utils/update-verify-tests/lit.local.cfg b/test/Utils/update-verify-tests/lit.local.cfg new file mode 100644 index 0000000000000..a545615b38ee7 --- /dev/null +++ b/test/Utils/update-verify-tests/lit.local.cfg @@ -0,0 +1,4 @@ +import sys + +if sys.version_info < (3, 9): + config.unsupported = True