summaryrefslogtreecommitdiff
path: root/nova/tests/test_notifications.py
diff options
context:
space:
mode:
authorDirk Mueller <dirk@dmllr.de>2013-05-18 00:18:18 +0200
committerDirk Mueller <dirk@dmllr.de>2013-06-01 09:57:31 +0200
commitbf68a9592db4c90bc9421ce49c7c0766966d6e7e (patch)
tree0a02a49d60348af8cb74d9be59c7a961666b7f01 /nova/tests/test_notifications.py
parent5a510518d9e3097730466cfbf4ff25495c4a0302 (diff)
downloadnova-bf68a9592db4c90bc9421ce49c7c0766966d6e7e.tar.gz
Improve Python 3.x compatibility
Mechanical translation of the deprecated except x,y: construct with except x as y: The latter works with any Python >= 2.6. Add Hacking check. Change-Id: I845829d97d379c1cd9b3a77e7e5786586f263b64
Diffstat (limited to 'nova/tests/test_notifications.py')
-rw-r--r--nova/tests/test_notifications.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_notifications.py b/nova/tests/test_notifications.py
index 71b85b3757..988ce983d4 100644
--- a/nova/tests/test_notifications.py
+++ b/nova/tests/test_notifications.py
@@ -99,7 +99,7 @@ class NotificationsTestCase(test.TestCase):
try:
# Get a real exception with a call stack.
raise test.TestingException("junk")
- except test.TestingException, e:
+ except test.TestingException as e:
exception = e
notifications.send_api_fault("http://example.com/foo", 500, exception)