Commit a09082e6 authored by Samuel GAIST's avatar Samuel GAIST

[test][docker] Fix exception declaration in except statement

parent 0449a652
...@@ -82,7 +82,7 @@ class AsyncTest(unittest.TestCase): ...@@ -82,7 +82,7 @@ class AsyncTest(unittest.TestCase):
try: try:
self.host.start(container) self.host.start(container)
except Exception, e: except Exception as e:
self.assertTrue(str(e).find('Failed to create the container') >= 0) self.assertTrue(str(e).find('Failed to create the container') >= 0)
self.assertFalse(self.host.containers) # All containers are gone self.assertFalse(self.host.containers) # All containers are gone
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment