[Python-checkins] Fix an invalid assertEqual() call in test_descr.py (GH-15318)
Pablo Galindo
webhook-mailer at python.org
Mon Aug 26 18:41:15 EDT 2019
https://github.com/python/cpython/commit/6b2e3256b6752055498f41f343fb22100845bc9d
commit: 6b2e3256b6752055498f41f343fb22100845bc9d
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: Pablo Galindo <Pablogsal at gmail.com>
date: 2019-08-26T23:41:11+01:00
summary:
Fix an invalid assertEqual() call in test_descr.py (GH-15318)
files:
M Lib/test/test_descr.py
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 @@ def test(klass):
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...
More information about the Python-checkins
mailing list