1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Resolve #9223 Fix test for python 2.6

* trivial test refactor to allow for python 2.6 compat
This commit is contained in:
Dave Rawks 2014-09-30 11:24:47 -07:00
parent 05994cd900
commit c070ab69f7

View file

@ -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(