summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>2023-03-05 15:07:44 +0000
committerGitHub <noreply@github.com>2023-03-05 07:07:44 -0800
commit7894bbe94ba319eb650f383cb5196424c77b2cfd (patch)
treec3639f2b922c63776cc51e893d7dddc99d24eabe
parent9a478be1a4314734c697dda7a7b0e633a6fb0751 (diff)
downloadcpython-git-7894bbe94ba319eb650f383cb5196424c77b2cfd.tar.gz
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. Automerge-Triggered-By: GH:AlexWaygood
-rw-r--r--Lib/test/test_typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index 96496ec927..2eeaf91d78 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -2921,8 +2921,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):