diff options
| author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2022-03-06 06:21:28 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 06:21:28 (GMT) |
| commit | 602024e6e12c69d836aa191d63db75862aec2493 (patch) | |
| tree | 8fb05dba818a3db64343e7c66f9ead798858856f /Lib/test/test_super.py | |
| parent | 2d8b764210c8de10893665aaeec8277b687975cd (diff) | |
| download | cpython-602024e6e12c69d836aa191d63db75862aec2493.zip cpython-602024e6e12c69d836aa191d63db75862aec2493.tar.gz cpython-602024e6e12c69d836aa191d63db75862aec2493.tar.bz2 | |
bpo-46921: Vectorcall support for `super()` (GH-31687)
Co-Authored-By: Dong-hee Na <donghee.na@python.org>
Diffstat (limited to 'Lib/test/test_super.py')
| -rw-r--r-- | Lib/test/test_super.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_super.py b/Lib/test/test_super.py index 5d94372..a68b38c 100644 --- a/Lib/test/test_super.py +++ b/Lib/test/test_super.py @@ -317,6 +317,14 @@ class TestSuper(unittest.TestCase): for i in range(1000): super.__init__(sp, int, i) + def test_super_argcount(self): + with self.assertRaisesRegex(TypeError, "expected at most"): + super(int, int, int) + + def test_super_argtype(self): + with self.assertRaisesRegex(TypeError, "argument 1 must be a type"): + super(1, int) + if __name__ == "__main__": unittest.main() |
