Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
gh-71339: Use new assertion methods in test_enum
  • Loading branch information
srinivasreddy committed Jan 21, 2025
commit 816fe26ea41bc8ded8ee49e976be41f3cb335197
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