8000 Fix an invalid assertEqual() call in test_descr.py (GH-15318) · python/cpython@c75f0e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit c75f0e5

Browse files
Fix an invalid assertEqual() call in test_descr.py (GH-15318)
(cherry picked from commit 6b2e325) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent b8a22ac commit c75f0e5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Lib/test/test_descr.py

Lines changed: 1 addition & 5 deletions
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)
0