mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-44342: [Enum] sync current docs to 3.10 (GH-26750)
This commit is contained in:
parent
ac38a9f2df
commit
741b8ae1cf
3 changed files with 4 additions and 4 deletions
|
@ -3614,7 +3614,7 @@ class TestVerify(unittest.TestCase):
|
|||
self.assertEqual(Bizarre.d.value, 6)
|
||||
with self.assertRaisesRegex(
|
||||
ValueError,
|
||||
"invalid Flag 'Bizarre': aliases b and d are missing combined values of 0x3 .use `enum.show_flag_values.value.` for details.",
|
||||
"invalid Flag 'Bizarre': aliases b and d are missing combined values of 0x3 .use enum.show_flag_values.value. for details.",
|
||||
):
|
||||
@verify(NAMED_FLAGS)
|
||||
class Bizarre(Flag):
|
||||
|
@ -3633,7 +3633,7 @@ class TestVerify(unittest.TestCase):
|
|||
self.assertEqual(Bizarre.d.value, 6)
|
||||
with self.assertRaisesRegex(
|
||||
ValueError,
|
||||
"invalid Flag 'Bizarre': alias d is missing value 0x2 .use `enum.show_flag_values.value.` for details.",
|
||||
"invalid Flag 'Bizarre': alias d is missing value 0x2 .use enum.show_flag_values.value. for details.",
|
||||
):
|
||||
@verify(NAMED_FLAGS)
|
||||
class Bizarre(IntFlag):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue