summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorThomi Richards <thomi.richards@canonical.com>2013-11-19 11:34:53 +1300
committerThomi Richards <thomi.richards@canonical.com>2013-11-19 11:34:53 +1300
commite30001daaf6ce2ee233ce856a87df4d16b389062 (patch)
treed236eb806da72645fb231d7e52859a28cd5680b8 /python
parent03b5ef473ebf841b6187f2423eaa5c97f36885fb (diff)
downloadsubunit-git-e30001daaf6ce2ee233ce856a87df4d16b389062.tar.gz
Aded NEWS item, fixed some test code.
Diffstat (limited to 'python')
-rw-r--r--python/subunit/tests/test_output_filter.py5
1 files changed, 2 insertions, 3 deletions
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')