Improve Python 3.x compatibility
Some mechanical translation of the deprecated except x,y construct. Should work with Python >= 2.6 just fine Change-Id: I394f9956b9e3e3d9f5f1e9ad50c35b13200af2a1
This commit is contained in:
@@ -289,7 +289,7 @@ class TestController(testtools.TestCase):
|
||||
try:
|
||||
body = ''.join([b for b in body])
|
||||
self.fail('data did not raise an error.')
|
||||
except IOError, e:
|
||||
except IOError as e:
|
||||
self.assertEqual(errno.EPIPE, e.errno)
|
||||
msg = 'was 9d3d9048db16a7eee539e93e3618cbe7 expected wrong'
|
||||
self.assertTrue(msg in str(e))
|
||||
|
||||
Reference in New Issue
Block a user