From bc8b162510b18f3eb1ca98db55eafbf58e299497 Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Tue, 3 Nov 2015 11:26:37 +0000 Subject: [PATCH] Old-fashioned set syntax --- testtools/testresult/real.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testtools/testresult/real.py b/testtools/testresult/real.py index bf1e259..7380e17 100644 --- a/testtools/testresult/real.py +++ b/testtools/testresult/real.py @@ -278,7 +278,7 @@ class TestResult(unittest.TestResult): running and at any intermediary point they might choose to indicate their continual operation. """ -INTERIM_STATES = frozenset({None, 'inprogress'}) +INTERIM_STATES = frozenset([None, 'inprogress']) """Final states: @@ -303,7 +303,7 @@ INTERIM_STATES = frozenset({None, 'inprogress'}) * unknown - we don't know what state the test is in """ FINAL_STATES = frozenset( - {'exists', 'xfail', 'uxsuccess', 'success', 'fail', 'skip', 'unknown'}) + ['exists', 'xfail', 'uxsuccess', 'success', 'fail', 'skip', 'unknown']) STATES = INTERIM_STATES | FINAL_STATES