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

Skip to content

Commit 31ce015

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 b4e83a3 commit 31ce015

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
@@ -2627,12 +2627,8 @@ def test(klass):
26272627
self.assertEqual(Sub.test(), Base.aProp)
26282628

26292629
# Verify that super() doesn't allow keyword args
2630-
try:
2630+
with self.assertRaises(TypeError):
26312631
super(Base, kw=1)
2632-
except TypeError:
2633-
pass
2634-
else:
2635-
self.assertEqual("super shouldn't accept keyword args")
26362632

26372633
def test_basic_inheritance(self):
26382634
# Testing inheritance from basic types...

0 commit comments

Comments
 (0)
0