Skip to content

Commit 2f3c6dc

Browse files
Add test specifically for bpo
1 parent f60ea8a commit 2f3c6dc

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
@@ -320,7 +320,11 @@ def test_abc_callable(self):
320320
with self.assertRaises(TypeError):
321321
eval(bad)
322322

323-
323+
# bpo-42195
324+
with self.subTest("Testing collections.abc.Callable's consistency "
325+
"with typing.Callable"):
326+
self.assertEquals(typing.Callable[[int, str], dict].__args__,
327+
Callable[[int, str], dict].__args__)
324328

325329
if __name__ == "__main__":
326330
unittest.main()

0 commit comments

Comments
 (0)