summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r--Lib/test/test_typing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index 46bab5e..314716c 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -1367,6 +1367,9 @@ class GenericTests(BaseTestCase):
class A(Generic[T]):
pass
+ with self.assertRaises(TypeError):
+ A('foo')
+
class B:
def __new__(cls):
# call object