diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-08-26 22:41:11 (GMT) |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2019-08-26 22:41:11 (GMT) |
commit | 6b2e3256b6752055498f41f343fb22100845bc9d (patch) | |
tree | 59e3252e17652c3460c427d7fb7d1ab951dbcec8 /Lib | |
parent | bed4817d52d7b5a383b1b61269c1337b61acc493 (diff) | |
download | cpython-6b2e3256b6752055498f41f343fb22100845bc9d.zip cpython-6b2e3256b6752055498f41f343fb22100845bc9d.tar.gz cpython-6b2e3256b6752055498f41f343fb22100845bc9d.tar.bz2 |
Fix an invalid assertEqual() call in test_descr.py (GH-15318)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_descr.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 0b43549..770e0c4 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... |