gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)

(cherry picked from commit b44372e03c)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This commit is contained in:
Miss Islington (bot) 2022-10-05 16:32:16 -07:00 committed by Pablo Galindo
parent a969af4eaa
commit 1a788914ca
No known key found for this signature in database
GPG key ID: FFE87404168BD847
3 changed files with 11 additions and 2 deletions

View file

@ -2878,7 +2878,7 @@ class OldTestFlag(unittest.TestCase):
self.assertEqual(bool(f.value), bool(f))
def test_boundary(self):
self.assertIs(enum.Flag._boundary_, STRICT)
self.assertIs(enum.Flag._boundary_, CONFORM)
class Iron(Flag, boundary=STRICT):
ONE = 1
TWO = 2