From b80b9cfc9ded891f81c9bd447cda0cd4c42d1642 Mon Sep 17 00:00:00 2001 From: "William Wen (Meta Employee)" Date: Fri, 17 May 2024 11:54:57 -0700 Subject: [PATCH] add 3.12 inductor CI tests (#126218) Summary: X-link: https://github.com/pytorch/pytorch/pull/126218 Approved by: https://github.com/huydhn, https://github.com/desertfire Reviewed By: huydhn Differential Revision: D57474313 Pulled By: williamwen42 fbshipit-source-id: 4206f05e93d7e91aea34799bf27c8219b06b6514 --- userbenchmark/dynamo/dynamobench/_dynamo/testing.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/userbenchmark/dynamo/dynamobench/_dynamo/testing.py b/userbenchmark/dynamo/dynamobench/_dynamo/testing.py index b4c022e8d8..9e9abe8422 100644 --- a/userbenchmark/dynamo/dynamobench/_dynamo/testing.py +++ b/userbenchmark/dynamo/dynamobench/_dynamo/testing.py @@ -349,6 +349,12 @@ def xfailIfPy312(fn): return fn +def skipIfPy312(fn): + if sys.version_info >= (3, 12): + return unittest.skip(fn) + return fn + + # Controls tests generated in test/inductor/test_torchinductor_dynamic_shapes.py # and test/dynamo/test_dynamic_shapes.py def expectedFailureDynamic(fn):