File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,25 +36,25 @@ class State:
36
36
37
37
@staticmethod
38
38
def is_failed (state ):
39
- return state in (
39
+ return state in {
40
40
State .FAILED ,
41
41
State .UNCAUGHT_EXC ,
42
42
State .REFLEAK ,
43
43
State .MULTIPROCESSING_ERROR ,
44
- State .TIMEOUT )
44
+ State .TIMEOUT }
45
45
46
46
@staticmethod
47
47
def has_meaningful_duration (state ):
48
48
# Consider that the duration is meaningless for these cases.
49
49
# For example, if a whole test file is skipped, its duration
50
50
# is unlikely to be the duration of executing its tests,
51
51
# but just the duration to execute code which skips the test.
52
- return state not in (
52
+ return state not in {
53
53
State .SKIPPED ,
54
54
State .RESOURCE_DENIED ,
55
55
State .INTERRUPTED ,
56
56
State .MULTIPROCESSING_ERROR ,
57
- State .DID_NOT_RUN )
57
+ State .DID_NOT_RUN }
58
58
59
59
60
60
@dataclasses .dataclass (slots = True )
You can’t perform that action at this time.
0 commit comments