mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-91578: improved error message when trying to instantiate an abstract class with missing methods (gh-47246)
This commit is contained in:
parent
8a0d9a6bb7
commit
079f0dd719
4 changed files with 9 additions and 8 deletions
|
@ -3762,7 +3762,7 @@ class TestAbstract(unittest.TestCase):
|
|||
day: 'int'
|
||||
|
||||
self.assertTrue(inspect.isabstract(Date))
|
||||
msg = 'class Date with abstract method foo'
|
||||
msg = 'class Date without an implementation for abstract method foo'
|
||||
self.assertRaisesRegex(TypeError, msg, Date)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue