From e30001daaf6ce2ee233ce856a87df4d16b389062 Mon Sep 17 00:00:00 2001 From: Thomi Richards Date: Tue, 19 Nov 2013 11:34:53 +1300 Subject: Aded NEWS item, fixed some test code. --- python/subunit/tests/test_output_filter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'python/subunit/tests') diff --git a/python/subunit/tests/test_output_filter.py b/python/subunit/tests/test_output_filter.py index 72ede6a..bddcc99 100644 --- a/python/subunit/tests/test_output_filter.py +++ b/python/subunit/tests/test_output_filter.py @@ -43,6 +43,7 @@ import subunit._output as _o class SafeArgumentParser(argparse.ArgumentParser): + """An ArgumentParser class that doesn't call sys.exit.""" def exit(self, status=0, message=""): raise RuntimeError("ArgumentParser requested to exit with status "\ @@ -52,9 +53,7 @@ class SafeArgumentParser(argparse.ArgumentParser): safe_parse_arguments = partial(parse_arguments, ParserClass=SafeArgumentParser) -class OutputFilterArgumentTests(TestCase): - - """Tests for the command line argument parser.""" +class OutputFilterArgumentParserTests(TestCase): _all_supported_commands = ('start', 'pass', 'fail', 'skip', 'exists') -- cgit v1.2.1