summaryrefslogtreecommitdiff
path: root/tests/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/util.py b/tests/util.py
index a2f345bf8..c88d5c0a8 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -62,7 +62,7 @@ def raises_msg(exc, msg, func, *args, **kwds):
"""
try:
func(*args, **kwds)
- except exc, err:
+ except exc as err:
assert msg in str(err), "\"%s\" not in \"%s\"" % (msg, err)
else:
raise AssertionError('%s did not raise %s' %