8000 Coding style · python/cpython@660cdd5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 660cdd5

Browse files
committed
Coding style
1 parent 156456b commit 660cdd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/libregrtest/runtest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)
0