From 5073bac83332da3c44ee478951cee762fe2988ac Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Wed, 25 May 2022 20:52:31 -0400 Subject: [PATCH 1/2] Update test_reprlib.py to CPython 3.10 --- Lib/test/test_reprlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_reprlib.py b/Lib/test/test_reprlib.py index a4ab868e75..611fb9d1e4 100644 --- a/Lib/test/test_reprlib.py +++ b/Lib/test/test_reprlib.py @@ -209,9 +209,9 @@ def test_descriptors(self): class C: def foo(cls): pass x = staticmethod(C.foo) - self.assertTrue(repr(x).startswith('') x = classmethod(C.foo) - self.assertTrue(repr(x).startswith('') def test_unsortable(self): # Repr.repr() used to call sorted() on sets, frozensets and dicts From d83c01d3e6b7a635506b8bfa624ec92af89edc2c Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Wed, 25 May 2022 20:53:09 -0400 Subject: [PATCH 2/2] Mark failing test --- Lib/test/test_reprlib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_reprlib.py b/Lib/test/test_reprlib.py index 611fb9d1e4..bc0d4d1f7a 100644 --- a/Lib/test/test_reprlib.py +++ b/Lib/test/test_reprlib.py @@ -198,6 +198,8 @@ def inner(): r'int object at 0x[0-9A-Fa-f]+>') self.assertRegex(r(x), r'') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_descriptors(self): eq = self.assertEqual # method descriptors