Skip to content

Commit b85b0b6

Browse files
williamwen42facebook-github-bot
authored andcommitted
xfail refleaking tests due to buggy getattr_static (#125062)
Summary: For tracking pytorch/pytorch#124302 so that we can re-enable the test once 3.12 updates with the bug fix for python/cpython#118013. X-link: pytorch/pytorch#125062 Approved by: https://github.com/anijain2305, https://github.com/jansel Reviewed By: kit1980 Differential Revision: D56801860 Pulled By: williamwen42 fbshipit-source-id: 16b38ce7f1b8cabe2fcdd660fc8a2fabdda04aca
1 parent 67ef897 commit b85b0b6

File tree

1 file changed

+6
-0
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+6
-0
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/testing.py

+6
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ def skipIfNotPy311(fn):
341341
return unittest.skip(fn)
342342

343343

344+
def xfailIfPy312(fn):
345+
if sys.version_info >= (3, 12):
346+
return unittest.expectedFailure(fn)
347+
return fn
348+
349+
344350
# Controls tests generated in test/inductor/test_torchinductor_dynamic_shapes.py
345351
# and test/dynamo/test_dynamic_shapes.py
346352
def expectedFailureDynamic(fn):

0 commit comments

Comments
 (0)