diff options
author | Min ho Kim <minho42@gmail.com> | 2019-07-21 20:12:33 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-07-21 20:12:33 (GMT) |
commit | 96e12d5f4f3c5a20986566038ee763dff3c228a1 (patch) | |
tree | ae4039f978a155a295903e084f4531d42b8cf7a8 /Lib/test/test_dataclasses.py | |
parent | 8e3a7380ecb310b50e48f47d1f26190cc9c45eb6 (diff) | |
download | cpython-96e12d5f4f3c5a20986566038ee763dff3c228a1.zip cpython-96e12d5f4f3c5a20986566038ee763dff3c228a1.tar.gz cpython-96e12d5f4f3c5a20986566038ee763dff3c228a1.tar.bz2 |
Fix typos in docs, comments and test assert messages (#14872)
Diffstat (limited to 'Lib/test/test_dataclasses.py')
-rwxr-xr-x | Lib/test/test_dataclasses.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py index 53e8443..ea42904 100755 --- a/Lib/test/test_dataclasses.py +++ b/Lib/test/test_dataclasses.py @@ -3043,11 +3043,11 @@ class TestMakeDataclass(unittest.TestCase): def test_non_identifier_field_names(self): for field in ['()', 'x,y', '*', '2@3', '', 'little johnny tables']: with self.subTest(field=field): - with self.assertRaisesRegex(TypeError, 'must be valid identifers'): + with self.assertRaisesRegex(TypeError, 'must be valid identifiers'): make_dataclass('C', ['a', field]) - with self.assertRaisesRegex(TypeError, 'must be valid identifers'): + with self.assertRaisesRegex(TypeError, 'must be valid identifiers'): make_dataclass('C', [field]) - with self.assertRaisesRegex(TypeError, 'must be valid identifers'): + with self.assertRaisesRegex(TypeError, 'must be valid identifiers'): make_dataclass('C', [field, 'a']) def test_underscore_field_names(self): |