mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
(cherry-picked from commit 02d26c4bef
)
This commit is contained in:
parent
e8eb2bf788
commit
5f7aba938c
6 changed files with 16 additions and 19 deletions
|
@ -98,7 +98,7 @@ class TestMROEntry(unittest.TestCase):
|
|||
return ()
|
||||
d = C_too_few()
|
||||
with self.assertRaises(TypeError):
|
||||
class D(d): ...
|
||||
class E(d): ...
|
||||
|
||||
def test_mro_entry_errors_2(self):
|
||||
class C_not_callable:
|
||||
|
@ -111,7 +111,7 @@ class TestMROEntry(unittest.TestCase):
|
|||
return object
|
||||
c = C_not_tuple()
|
||||
with self.assertRaises(TypeError):
|
||||
class D(c): ...
|
||||
class E(c): ...
|
||||
|
||||
def test_mro_entry_metaclass(self):
|
||||
meta_args = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue