summaryrefslogtreecommitdiff
path: root/tests/v1/test_images.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/v1/test_images.py')
-rw-r--r--tests/v1/test_images.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/v1/test_images.py b/tests/v1/test_images.py
index a0f4a4e..6090584 100644
--- a/tests/v1/test_images.py
+++ b/tests/v1/test_images.py
@@ -333,7 +333,7 @@ class ImageManagerTest(testtools.TestCase):
try:
data = ''.join([b for b in data])
self.fail('data did not raise an error.')
- except IOError, e:
+ except IOError as e:
self.assertEqual(errno.EPIPE, e.errno)
msg = 'was fd7c5c4fdaa97163ee4ba8842baa537a expected wrong'
self.assertTrue(msg in str(e))
@@ -507,7 +507,7 @@ class ImageTest(testtools.TestCase):
try:
data = ''.join([b for b in image.data()])
self.fail('data did not raise an error.')
- except IOError, e:
+ except IOError as e:
self.assertEqual(errno.EPIPE, e.errno)
msg = 'was fd7c5c4fdaa97163ee4ba8842baa537a expected wrong'
self.assertTrue(msg in str(e))