diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index 73ef979674..3be2668fa9 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -687,14 +687,8 @@ class TestUtils(unittest.TestCase): ) # invalid quote detection - try: - with self.assertRaises(Exception): - split_args('hey I started a quote"') - with self.assertRaises(Exception): - split_args('hey I started a\' quote') - except TypeError: - # you must be on Python 2.6 still, FIXME - pass + self.assertRaises(Exception, split_args, 'hey I started a quote"') + self.assertRaises(Exception, split_args, 'hey I started a\' quote') # jinja2 loop blocks with lots of complexity _test_combo(