gh-91578: improved error message when trying to instantiate an abstract class with missing methods (gh-47246)

This commit is contained in:
ravi140222 2022-05-12 20:56:11 +05:30 committed by GitHub
parent 8a0d9a6bb7
commit 079f0dd719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 8 deletions

View file

@ -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)