From 563784a20723303312535864158aefef0e20c1c2 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 26 May 2023 10:48:28 +0100 Subject: [PATCH 1/2] Skip a problematic test on CPython 3.12.0b1 --- src/test_typing_extensions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py index fd2a91c3..ac0a2691 100644 --- a/src/test_typing_extensions.py +++ b/src/test_typing_extensions.py @@ -2267,6 +2267,10 @@ class Foo: ... del f.x self.assertNotIsInstance(f, HasX) + @skipIf( + sys.version_info == (3, 12, 0, 'beta', 1), + "CPython had a bug in 3.12.0b1" + ) def test_protocols_isinstance_generic_classes(self): T = TypeVar("T") From aac8e0a1eb00dff03802418f7b3d500faadc1bec Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 26 May 2023 10:55:17 +0100 Subject: [PATCH 2/2] Docs --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6165d9c..18d5f370 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# Unreleased + +- Skip a problematic test on Python 3.12.0b1. The test fails on 3.12.0b1 due to + a bug in CPython, which will be fixed in 3.12.0b2. The + `typing_extensions` test suite now passes on 3.12.0b1. + # Release 4.6.2 (May 25, 2023) - Fix use of `@deprecated` on classes with `__new__` but no `__init__`.