Skip to content

Commit 177beb2

Browse files
committed
Update test_typing.py
Additional test for Generic[T, T]
1 parent 521a9d8 commit 177beb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

prototyping/test_typing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,11 @@ def test_basics(self):
557557

558558
def test_init(self):
559559
T = TypeVar('T')
560+
S = TypeVar('S')
560561
with self.assertRaises(TypeError):
561562
Generic[T, T]
563+
with self.assertRaises(TypeError):
564+
Generic[T, S, T]
562565

563566
def test_repr(self):
564567
self.assertEqual(repr(SimpleMapping),

0 commit comments

Comments
 (0)