mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Fix an invalid assertEqual() call in test_descr.py (GH-15318)
(cherry picked from commit 6b2e3256b6
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
b8a22ac856
commit
c75f0e5bde
1 changed files with 1 additions and 5 deletions
|
@ -2659,12 +2659,8 @@ order (MRO) for bases """
|
||||||
self.assertEqual(Sub.test(), Base.aProp)
|
self.assertEqual(Sub.test(), Base.aProp)
|
||||||
|
|
||||||
# Verify that super() doesn't allow keyword args
|
# Verify that super() doesn't allow keyword args
|
||||||
try:
|
with self.assertRaises(TypeError):
|
||||||
super(Base, kw=1)
|
super(Base, kw=1)
|
||||||
except TypeError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
self.assertEqual("super shouldn't accept keyword args")
|
|
||||||
|
|
||||||
def test_basic_inheritance(self):
|
def test_basic_inheritance(self):
|
||||||
# Testing inheritance from basic types...
|
# Testing inheritance from basic types...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue