mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
Fix typos in docs, comments and test assert messages (#14872)
This commit is contained in:
parent
8e3a7380ec
commit
96e12d5f4f
21 changed files with 24 additions and 24 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue