From 3e521220129b2d82bc28529bd5ebf4f56ab6062e Mon Sep 17 00:00:00 2001 From: Guilherme Leobas Date: Fri, 27 Jun 2025 16:45:33 -0300 Subject: [PATCH 1/2] Update [ghstack-poisoned] --- test/dynamo/cpython/3_13/test_contextlib.diff | 28 ++++++++++++++++++- test/dynamo/cpython/3_13/test_contextlib.py | 12 ++++---- ...ManagerTestCase.test_contextmanager_except | 0 ...anagerTestCase.test_contextmanager_finally | 0 ...tManagerTestCase.test_contextmanager_plain | 0 ...Case.test_contextmanager_trap_second_yield | 0 ...test_contextmanager_trap_yield_after_throw | 0 ...xtlib-ContextManagerTestCase.test_keywords | 0 ...TestContextDecorator.test_contextdecorator | 0 ...Decorator.test_contextmanager_as_decorator | 0 ...extlib-TestContextDecorator.test_decorator | 0 ...hrowTest.test_exception_context_with_yield | 0 ...est.test_exception_context_with_yield_from | 0 ...eption_context_with_yield_inside_generator | 0 ...3-test_int-IntTestCases.test_error_message | 0 15 files changed, 33 insertions(+), 7 deletions(-) delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_except delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_finally delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_plain delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_trap_second_yield delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_trap_yield_after_throw delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_keywords delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_contextdecorator delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_contextmanager_as_decorator delete mode 100644 test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_decorator delete mode 100644 test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield delete mode 100644 test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield_from delete mode 100644 test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield_inside_generator delete mode 100644 test/dynamo_expected_failures/CPython313-test_int-IntTestCases.test_error_message diff --git a/test/dynamo/cpython/3_13/test_contextlib.diff b/test/dynamo/cpython/3_13/test_contextlib.diff index f3314f590c10..bfc65611c461 100644 --- a/test/dynamo/cpython/3_13/test_contextlib.diff +++ b/test/dynamo/cpython/3_13/test_contextlib.diff @@ -1,5 +1,5 @@ diff --git a/test/dynamo/cpython/3_13/test_contextlib.py b/test/dynamo/cpython/3_13/test_contextlib.py -index cf651959803..6a17bc719eb 100644 +index cf651959803..0f676c40d67 100644 --- a/test/dynamo/cpython/3_13/test_contextlib.py +++ b/test/dynamo/cpython/3_13/test_contextlib.py @@ -1,3 +1,54 @@ @@ -75,6 +75,32 @@ index cf651959803..6a17bc719eb 100644 def test_contextmanager_plain(self): state = [] +@@ -169,9 +220,9 @@ class ContextManagerTestCase(unittest.TestCase): + ctx.__enter__() + with self.assertRaises(RuntimeError): + ctx.__exit__(TypeError, TypeError("foo"), None) +- if support.check_impl_detail(cpython=True): +- # The "gen" attribute is an implementation detail. +- self.assertFalse(ctx.gen.gi_suspended) ++ # if support.check_impl_detail(cpython=True): ++ # # The "gen" attribute is an implementation detail. ++ # self.assertFalse(ctx.gen.gi_suspended) + + def test_contextmanager_trap_no_yield(self): + @contextmanager +@@ -191,9 +242,9 @@ class ContextManagerTestCase(unittest.TestCase): + ctx.__enter__() + with self.assertRaises(RuntimeError): + ctx.__exit__(None, None, None) +- if support.check_impl_detail(cpython=True): +- # The "gen" attribute is an implementation detail. +- self.assertFalse(ctx.gen.gi_suspended) ++ # if support.check_impl_detail(cpython=True): ++ # # The "gen" attribute is an implementation detail. ++ # self.assertFalse(ctx.gen.gi_suspended) + + def test_contextmanager_non_normalised(self): + @contextmanager @@ -396,7 +447,7 @@ def woohoo(): self.assertEqual(depth, 0) diff --git a/test/dynamo/cpython/3_13/test_contextlib.py b/test/dynamo/cpython/3_13/test_contextlib.py index 6a17bc719eb9..0f676c40d674 100644 --- a/test/dynamo/cpython/3_13/test_contextlib.py +++ b/test/dynamo/cpython/3_13/test_contextlib.py @@ -220,9 +220,9 @@ def whoo(): ctx.__enter__() with self.assertRaises(RuntimeError): ctx.__exit__(TypeError, TypeError("foo"), None) - if support.check_impl_detail(cpython=True): - # The "gen" attribute is an implementation detail. - self.assertFalse(ctx.gen.gi_suspended) + # if support.check_impl_detail(cpython=True): + # # The "gen" attribute is an implementation detail. + # self.assertFalse(ctx.gen.gi_suspended) def test_contextmanager_trap_no_yield(self): @contextmanager @@ -242,9 +242,9 @@ def whoo(): ctx.__enter__() with self.assertRaises(RuntimeError): ctx.__exit__(None, None, None) - if support.check_impl_detail(cpython=True): - # The "gen" attribute is an implementation detail. - self.assertFalse(ctx.gen.gi_suspended) + # if support.check_impl_detail(cpython=True): + # # The "gen" attribute is an implementation detail. + # self.assertFalse(ctx.gen.gi_suspended) def test_contextmanager_non_normalised(self): @contextmanager diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_except b/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_except deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_finally b/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_finally deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_plain b/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_plain deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_trap_second_yield b/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_trap_second_yield deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_trap_yield_after_throw b/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_contextmanager_trap_yield_after_throw deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_keywords b/test/dynamo_expected_failures/CPython313-test_contextlib-ContextManagerTestCase.test_keywords deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_contextdecorator b/test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_contextdecorator deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_contextmanager_as_decorator b/test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_contextmanager_as_decorator deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_decorator b/test/dynamo_expected_failures/CPython313-test_contextlib-TestContextDecorator.test_decorator deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield b/test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield_from b/test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield_from deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield_inside_generator b/test/dynamo_expected_failures/CPython313-test_generators-GeneratorThrowTest.test_exception_context_with_yield_inside_generator deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/test/dynamo_expected_failures/CPython313-test_int-IntTestCases.test_error_message b/test/dynamo_expected_failures/CPython313-test_int-IntTestCases.test_error_message deleted file mode 100644 index e69de29bb2d1..000000000000 From c40c08bb591b2710026d44fea7ad4620191bd4d9 Mon Sep 17 00:00:00 2001 From: Guilherme Leobas Date: Mon, 30 Jun 2025 12:18:24 -0300 Subject: [PATCH 2/2] Update [ghstack-poisoned] --- .../CPython313-test_int-IntTestCases.test_error_message | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/dynamo_expected_failures/CPython313-test_int-IntTestCases.test_error_message diff --git a/test/dynamo_expected_failures/CPython313-test_int-IntTestCases.test_error_message b/test/dynamo_expected_failures/CPython313-test_int-IntTestCases.test_error_message new file mode 100644 index 000000000000..e69de29bb2d1