[3.8] Fix typos in docs, comments and test assert messages (GH-14872). (#14900)

(cherry picked from commit 96e12d5f4f)

Co-authored-by: Min ho Kim <minho42@gmail.com>
This commit is contained in:
Kyle Stanley 2019-07-21 22:48:45 -04:00 committed by Terry Jan Reedy
parent 0104841d12
commit 24b5b360fa
20 changed files with 23 additions and 23 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):