Fix typos in docs, comments and test assert messages (#14872)

This commit is contained in:
Min ho Kim 2019-07-22 06:12:33 +10:00 committed by Terry Jan Reedy
parent 8e3a7380ec
commit 96e12d5f4f
21 changed files with 24 additions and 24 deletions

View file

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