Skip to content

Commit

Permalink
pythongh-71339: Use new assertion methods in test_enum
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Jan 21, 2025
1 parent a4fe025 commit 816fe26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3256,7 +3256,7 @@ class MyIntFlag(int, Flag):
ONE = 1
TWO = 2
FOUR = 4
self.assertIsInstance(MyIntFlag.ONE | MyIntFlag.TWO, MyIntFlag, MyIntFlag.ONE | MyIntFlag.TWO)
self.assertIsInstance(MyIntFlag.ONE | MyIntFlag.TWO, (MyIntFlag, MyIntFlag.ONE | MyIntFlag.TWO))
self.assertIsInstance(MyIntFlag.ONE | 2, MyIntFlag)

def test_int_flags_copy(self):
Expand Down

0 comments on commit 816fe26

Please sign in to comment.