diff options
author | Kyle Stanley <aeros167@gmail.com> | 2019-07-22 18:14:07 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-07-22 18:14:07 (GMT) |
commit | 83cec020ba177fa27727330ba4ccf60eebc22a54 (patch) | |
tree | 926a6a42d1464f8040bbf044b49918cdef1277c0 /Lib/test/test_dataclasses.py | |
parent | 5d3d0f382f6663fcb8b426a62ef3a4cbd9a938d6 (diff) | |
download | cpython-83cec020ba177fa27727330ba4ccf60eebc22a54.zip cpython-83cec020ba177fa27727330ba4ccf60eebc22a54.tar.gz cpython-83cec020ba177fa27727330ba4ccf60eebc22a54.tar.bz2 |
[3.7] Fix typos in docs, comments and test assert messages (GH-14872). (#14901)
(cherry picked from commit 96e12d5f4f3c5a20986566038ee763dff3c228a1)
Co-authored-by: Min ho Kim <minho42@gmail.com>
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 a2c7cee..f36098c 100755 --- a/Lib/test/test_dataclasses.py +++ b/Lib/test/test_dataclasses.py @@ -3037,11 +3037,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): |