mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
[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:
parent
0104841d12
commit
24b5b360fa
20 changed files with 23 additions and 23 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