Skip to content

Commit

Permalink
Skip a problematic test on CPython 3.12.0b1 (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed May 26, 2023
1 parent e84f909 commit 5d51455
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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__`.
Expand Down
4 changes: 4 additions & 0 deletions src/test_typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 5d51455

Please sign in to comment.