8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e83a3 commit 31ce015Copy full SHA for 31ce015
Lib/test/test_descr.py
@@ -2627,12 +2627,8 @@ def test(klass):
2627
self.assertEqual(Sub.test(), Base.aProp)
2628
2629
# Verify that super() doesn't allow keyword args
2630
- try:
+ with self.assertRaises(TypeError):
2631
super(Base, kw=1)
2632
- except TypeError:
2633
- pass
2634
- else:
2635
- self.assertEqual("super shouldn't accept keyword args")
2636
2637
def test_basic_inheritance(self):
2638
# Testing inheritance from basic types...