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 b8a22ac commit c75f0e5Copy full SHA for c75f0e5
1 file changed
Lib/test/test_descr.py
@@ -2659,12 +2659,8 @@ def test(klass):
2659
self.assertEqual(Sub.test(), Base.aProp)
2660
2661
# Verify that super() doesn't allow keyword args
2662
- try:
+ with self.assertRaises(TypeError):
2663
super(Base, kw=1)
2664
- except TypeError:
2665
- pass
2666
- else:
2667
- self.assertEqual("super shouldn't accept keyword args")
2668
2669
def test_basic_inheritance(self):
2670
# Testing inheritance from basic types...
0 commit comments