diff options
author | Kaushik Kulkarni <15399010+kaushikcfd@users.noreply.github.com> | 2022-11-05 16:31:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 16:31:57 (GMT) |
commit | 67ade403a2dbbb41f270afd7000febadef85a27e (patch) | |
tree | 0439af43337dab78228536fcf06ad77344616a3d /Lib/test/test_dataclasses.py | |
parent | b5f711185bd11819566068ddf2a74a1402340e2d (diff) | |
download | cpython-67ade403a2dbbb41f270afd7000febadef85a27e.zip cpython-67ade403a2dbbb41f270afd7000febadef85a27e.tar.gz cpython-67ade403a2dbbb41f270afd7000febadef85a27e.tar.bz2 |
gh-98284: better error message for undefined abstractmethod (#97971)
Diffstat (limited to 'Lib/test/test_dataclasses.py')
-rw-r--r-- | Lib/test/test_dataclasses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py index 01e6684..a09f36c 100644 --- a/Lib/test/test_dataclasses.py +++ b/Lib/test/test_dataclasses.py @@ -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) |