Skip to content

Commit 5d51455

Browse files
authored
Skip a problematic test on CPython 3.12.0b1 (#200)
1 parent e84f909 commit 5d51455

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Unreleased
2+
3+
- Skip a problematic test on Python 3.12.0b1. The test fails on 3.12.0b1 due to
4+
a bug in CPython, which will be fixed in 3.12.0b2. The
5+
`typing_extensions` test suite now passes on 3.12.0b1.
6+
17
# Release 4.6.2 (May 25, 2023)
28

39
- Fix use of `@deprecated` on classes with `__new__` but no `__init__`.

src/test_typing_extensions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,6 +2267,10 @@ class Foo: ...
22672267
del f.x
22682268
self.assertNotIsInstance(f, HasX)
22692269

2270+
@skipIf(
2271+
sys.version_info == (3, 12, 0, 'beta', 1),
2272+
"CPython had a bug in 3.12.0b1"
2273+
)
22702274
def test_protocols_isinstance_generic_classes(self):
22712275
T = TypeVar("T")
22722276

0 commit comments

Comments
 (0)