summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dataclasses.py
diff options
context:
space:
mode:
authorravi140222 <100869741+ravi140222@users.noreply.github.com>2022-05-12 15:26:11 (GMT)
committerGitHub <noreply@github.com>2022-05-12 15:26:11 (GMT)
commit079f0dd7191fbadd4c3a5899b6af12492e84d2b4 (patch)
treea3fffb331db6c4cfc1affa57c3de19ba90eaabf3 /Lib/test/test_dataclasses.py
parent8a0d9a6bb77a72cd8b9ece01b7c1163fff28029a (diff)
downloadcpython-079f0dd7191fbadd4c3a5899b6af12492e84d2b4.zip
cpython-079f0dd7191fbadd4c3a5899b6af12492e84d2b4.tar.gz
cpython-079f0dd7191fbadd4c3a5899b6af12492e84d2b4.tar.bz2
gh-91578: improved error message when trying to instantiate an abstract class with missing methods (gh-47246)
Diffstat (limited to 'Lib/test/test_dataclasses.py')
-rw-r--r--Lib/test/test_dataclasses.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py
index 6a36da1..cf29cd0 100644
--- a/Lib/test/test_dataclasses.py
+++ b/Lib/test/test_dataclasses.py
@@ -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)