From: Zackery Spytz Date: Mon, 26 Aug 2019 22:41:11 +0000 (-0600) Subject: Fix an invalid assertEqual() call in test_descr.py (GH-15318) X-Git-Tag: v3.9.0a1~763 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b2e3256b6752055498f41f343fb22100845bc9d;p=thirdparty%2FPython%2Fcpython.git Fix an invalid assertEqual() call in test_descr.py (GH-15318) --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 0b43549efb83..770e0c496e28 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -2659,12 +2659,8 @@ order (MRO) for bases """ self.assertEqual(Sub.test(), Base.aProp) # Verify that super() doesn't allow keyword args - try: + with self.assertRaises(TypeError): super(Base, kw=1) - except TypeError: - pass - else: - self.assertEqual("super shouldn't accept keyword args") def test_basic_inheritance(self): # Testing inheritance from basic types...