Skip to content

Commit d0af417

Browse files
ZackerySpytzlisroach
authored andcommitted
Fix an invalid assertEqual() call in test_descr.py (pythonGH-15318)
1 parent 43d7271 commit d0af417

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Lib/test/test_descr.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -2659,12 +2659,8 @@ def test(klass):
26592659
self.assertEqual(Sub.test(), Base.aProp)
26602660

26612661
# Verify that super() doesn't allow keyword args
2662-
try:
2662+
with self.assertRaises(TypeError):
26632663
super(Base, kw=1)
2664-
except TypeError:
2665-
pass
2666-
else:
2667-
self.assertEqual("super shouldn't accept keyword args")
26682664

26692665
def test_basic_inheritance(self):
26702666
# Testing inheritance from basic types...

0 commit comments

Comments
 (0)