Enable H202 warning for flake8

Change-Id: Iaeb6d4ab1af5063558ef1a7b9a85e46c6cf0ccb7
This commit is contained in:
Ivan A. Melnikov
2014-01-02 19:24:57 +02:00
parent 9632fe6392
commit e5d31b2b3b
3 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ class UnorderedFlowTest(test.TestCase):
wf.add(utils.make_reverting_task('1'))
wf.add(utils.make_reverting_task('2', blowup=True))
e = self._make_engine(wf)
self.assertRaises(Exception, e.run)
self.assertRaisesRegexp(RuntimeError, '^I blew up', e.run)
def test_functor_flow(self):

View File

@@ -36,7 +36,7 @@ def make_reverting_task(token, blowup=False):
if blowup:
def blow_up(context, *args, **kwargs):
raise Exception("I blew up")
raise RuntimeError("I blew up")
return task.FunctorTask(blow_up, name='blowup_%s' % token)
else:

View File

@@ -47,6 +47,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = {posargs}
[flake8]
ignore = H202,H402
ignore = H402
builtins = _
exclude = .venv,.tox,dist,doc,./taskflow/openstack/common,*egg,.git,build,tools