Old-fashioned set syntax

This commit is contained in:
Jonathan Lange
2015-11-03 11:26:37 +00:00
parent 1eccee8c28
commit bc8b162510

View File

@@ -278,7 +278,7 @@ class TestResult(unittest.TestResult):
running and at any intermediary point they might choose to indicate their running and at any intermediary point they might choose to indicate their
continual operation. continual operation.
""" """
INTERIM_STATES = frozenset({None, 'inprogress'}) INTERIM_STATES = frozenset([None, 'inprogress'])
"""Final states: """Final states:
@@ -303,7 +303,7 @@ INTERIM_STATES = frozenset({None, 'inprogress'})
* unknown - we don't know what state the test is in * unknown - we don't know what state the test is in
""" """
FINAL_STATES = frozenset( FINAL_STATES = frozenset(
{'exists', 'xfail', 'uxsuccess', 'success', 'fail', 'skip', 'unknown'}) ['exists', 'xfail', 'uxsuccess', 'success', 'fail', 'skip', 'unknown'])
STATES = INTERIM_STATES | FINAL_STATES STATES = INTERIM_STATES | FINAL_STATES