diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-03-05 15:37:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 15:37:33 (GMT) |
commit | 94e08e174d8828298e51501e505ab567cd80ef25 (patch) | |
tree | 4f78391c31ec2d3d15d344352635ad6a23f9e0bd | |
parent | 2a062f275970b3775b055c2c82f31b766271ae18 (diff) | |
download | cpython-94e08e174d8828298e51501e505ab567cd80ef25.zip cpython-94e08e174d8828298e51501e505ab567cd80ef25.tar.gz cpython-94e08e174d8828298e51501e505ab567cd80ef25.tar.bz2 |
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 7894bbe94ba319eb650f383cb5196424c77b2cfd)
Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
-rw-r--r-- | Lib/test/test_typing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 7e033c0..2be4195 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -1528,8 +1528,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): |