diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-26 23:02:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-26 23:02:21 (GMT) |
commit | c75f0e5bdee3cfaba9fd5b3a8549dec0aba01ebe (patch) | |
tree | 8c2c9ea2978ae529a2f54bd281bf15779a5e8bc9 | |
parent | b8a22ac856944d1dded46ed4caa795e07bfaf0c6 (diff) | |
download | cpython-c75f0e5bdee3cfaba9fd5b3a8549dec0aba01ebe.zip cpython-c75f0e5bdee3cfaba9fd5b3a8549dec0aba01ebe.tar.gz cpython-c75f0e5bdee3cfaba9fd5b3a8549dec0aba01ebe.tar.bz2 |
Fix an invalid assertEqual() call in test_descr.py (GH-15318)
(cherry picked from commit 6b2e3256b6752055498f41f343fb22100845bc9d)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
-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 9998a3c..0d0c1dd 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... |