summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/global_vars_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/global_vars_runme.py')
-rw-r--r--Examples/test-suite/python/global_vars_runme.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/test-suite/python/global_vars_runme.py b/Examples/test-suite/python/global_vars_runme.py
index 3ef0b494f..015519ec8 100644
--- a/Examples/test-suite/python/global_vars_runme.py
+++ b/Examples/test-suite/python/global_vars_runme.py
@@ -20,7 +20,7 @@ if x != 9876:
fail = True
try:
global_vars.cvar.notexist = "something"
-except AttributeError, e:
+except AttributeError as e:
fail = False
if fail:
raise RuntimeError("AttributeError should have been thrown")
@@ -28,7 +28,7 @@ if fail:
fail = True
try:
g = global_vars.cvar.notexist
-except AttributeError, e:
+except AttributeError as e:
fail = False
if fail:
raise RuntimeError("AttributeError should have been thrown")