diff options
author | Ivan Levkivskyi <levkivskyi@gmail.com> | 2018-05-11 03:10:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-11 03:10:10 (GMT) |
commit | b551e9f0ff25018a5606465003e2c51c04f693a3 (patch) | |
tree | d3eb5c2df42b1b3f58b843f00d7ec7f49924b8e6 /Lib/test/test_typing.py | |
parent | df00f048250b9a07195b0e3b1c5c0161fdcc9db8 (diff) | |
download | cpython-b551e9f0ff25018a5606465003e2c51c04f693a3.zip cpython-b551e9f0ff25018a5606465003e2c51c04f693a3.tar.gz cpython-b551e9f0ff25018a5606465003e2c51c04f693a3.tar.bz2 |
Fix a bug in Generic.__new__ (GH-6758)
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 3 |
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 |