diff options
author | Georg Brandl <georg@python.org> | 2006-09-30 08:43:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-09-30 08:43:30 (GMT) |
commit | 5d59c0983431b0b7d3929dd2851b00e20e1d8c15 (patch) | |
tree | 0ee7023af580fab706ed5f0c7bfeb14f99af0230 /Lib/test/test_descr.py | |
parent | 8c6674511b7fd0cafcdf00011eb91c3216be094f (diff) | |
download | cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.zip cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.tar.gz cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.tar.bz2 |
Patch #1567691: super() and new.instancemethod() now don't accept
keyword arguments any more (previously they accepted them, but didn't
use them).
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index e9286b0..b108395 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -2142,6 +2142,13 @@ def supers(): veris(Sub.test(), Base.aProp) + # Verify that super() doesn't allow keyword args + try: + super(Base, kw=1) + except TypeError: + pass + else: + raise TestFailed, "super shouldn't accept keyword args" def inherits(): if verbose: print "Testing inheritance from basic types..." |