diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2014-01-13 11:10:11 +1300 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2014-01-13 11:10:11 +1300 |
| commit | 19b2995c1171430b421ddbd5d93101f4f427f4c6 (patch) | |
| tree | 1bc78c77d6e3648fccd7644766ed662e44518c92 /python | |
| parent | 69b9cfbb37effa0f55097be6342dafab97111555 (diff) | |
| download | subunit-19b2995c1171430b421ddbd5d93101f4f427f4c6.tar.gz | |
Fix failing test on py33.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_output_filter.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/python/subunit/tests/test_output_filter.py b/python/subunit/tests/test_output_filter.py index 7b11d4d..cba9332 100644 --- a/python/subunit/tests/test_output_filter.py +++ b/python/subunit/tests/test_output_filter.py @@ -166,16 +166,14 @@ class ArgParserTests(TestCase): def test_must_specify_tags_with_tags_options(self): fn = lambda: safe_parse_arguments(['--fail', 'foo', '--tag']) - if sys.version[0] > '3.2': - expected_message = '--tag option requires 1 argument' - else: - expected_message = '--tag option requires an argument' self.assertThat( fn, - raises(RuntimeError(expected_message)) + MatchesAny( + raises(RuntimeError('--tag option requires 1 argument')), + raises(RuntimeError('--tag option requires an argument')), + ) ) - def get_result_for(commands): """Get a result object from *commands. |
