import optparse
import os
-import subunithelper
import sys
import signal
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../lib/subunit/python"))
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../lib/testtools"))
+import subunithelper
+
parser = optparse.OptionParser("filter-subunit [options] < instream > outstream")
parser.add_option("--expected-failures", type="string",
help="File containing list of regexes matching tests to consider known "
opts, args = parser.parse_args()
if opts.expected_failures:
- expected_failures = list(subunithelper.read_test_regexes(opts.expected_failures))
+ expected_failures = subunithelper.read_test_regexes(opts.expected_failures)
else:
- expected_failures = []
+ expected_failures = {}
statistics = {
'TESTS_UNEXPECTED_OK': 0,