mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-98284: better error message for undefined abstractmethod (#97971)
This commit is contained in:
parent
b5f711185b
commit
67ade403a2
6 changed files with 23 additions and 19 deletions
|
@ -3970,7 +3970,7 @@ class TestAbstract(unittest.TestCase):
|
|||
day: 'int'
|
||||
|
||||
self.assertTrue(inspect.isabstract(Date))
|
||||
msg = 'class Date without an implementation for 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