File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,25 +36,25 @@ class State:
3636
3737 @staticmethod
3838 def is_failed (state ):
39- return state in (
39+ return state in {
4040 State .FAILED ,
4141 State .UNCAUGHT_EXC ,
4242 State .REFLEAK ,
4343 State .MULTIPROCESSING_ERROR ,
44- State .TIMEOUT )
44+ State .TIMEOUT }
4545
4646 @staticmethod
4747 def has_meaningful_duration (state ):
4848 # Consider that the duration is meaningless for these cases.
4949 # For example, if a whole test file is skipped, its duration
5050 # is unlikely to be the duration of executing its tests,
5151 # but just the duration to execute code which skips the test.
52- return state not in (
52+ return state not in {
5353 State .SKIPPED ,
5454 State .RESOURCE_DENIED ,
5555 State .INTERRUPTED ,
5656 State .MULTIPROCESSING_ERROR ,
57- State .DID_NOT_RUN )
57+ State .DID_NOT_RUN }
5858
5959
6060@dataclasses .dataclass (slots = True )
You can’t perform that action at this time.
0 commit comments