From 31ce015db893be60ae60e963e58c902ac87f5085 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 26 Aug 2019 15:59:18 -0700 Subject: [PATCH] Fix an invalid assertEqual() call in test_descr.py (GH-15318) (cherry picked from commit 6b2e3256b6752055498f41f343fb22100845bc9d) Co-authored-by: Zackery Spytz --- Lib/test/test_descr.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 675f9748e80..87304749974 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -2627,12 +2627,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...