Fix unused classes in a typing test (GH-102437)

As part of investigation issue https://github.com/python/cpython/issues/102433, I discovered what I believe to be an error where two classes `CI` and `DI` are not being used. The assertions beneath them act on `C` and `D`, duplicating existing assertions in this test.
(cherry picked from commit 7894bbe94b)

Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
This commit is contained in:
Miss Islington (bot) 2023-03-05 07:31:42 -08:00 committed by GitHub
parent e748f9e270
commit c957128b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2916,8 +2916,8 @@ class ProtocolTests(BaseTestCase):
def __init__(self):
self.x = None
self.assertIsInstance(C(), P)
self.assertIsInstance(D(), P)
self.assertIsInstance(CI(), P)
self.assertIsInstance(DI(), P)
def test_protocols_in_unions(self):
class P(Protocol):