Skip to content

Commit 68cef8b

Browse files
Add test specifically for bpo
1 parent 94ab3b0 commit 68cef8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/test/test_genericalias.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ def test_abc_callable(self):
310310
with self.assertRaises(TypeError):
311311
eval(bad)
312312

313-
313+
# bpo-42195
314+
with self.subTest("Testing collections.abc.Callable's consistency "
315+
"with typing.Callable"):
316+
self.assertEquals(typing.Callable[[int, str], dict].__args__,
317+
Callable[[int, str], dict].__args__)
314318

315319
if __name__ == "__main__":
316320
unittest.main()

0 commit comments

Comments
 (0)