mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[Enum] reformat and add doc strings (GH-23705)
This commit is contained in:
parent
37440eef7f
commit
6d3dfee271
2 changed files with 135 additions and 54 deletions
|
@ -429,7 +429,7 @@ class TestEnum(unittest.TestCase):
|
|||
def test_reserved__sunder_(self):
|
||||
with self.assertRaisesRegex(
|
||||
ValueError,
|
||||
'_sunder_ names, such as "_bad_", are reserved',
|
||||
"_sunder_ names, such as '_bad_', are reserved",
|
||||
):
|
||||
class Bad(Enum):
|
||||
_bad_ = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue