tests/test-trusted.py
changeset 25660 328739ea70c3
parent 19872 681f7b9213a4
child 26587 56b2bcea2529
--- a/tests/test-trusted.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/tests/test-trusted.py	Tue Jun 23 22:20:08 2015 -0700
@@ -169,7 +169,7 @@
 def assertraises(f, exc=util.Abort):
     try:
         f()
-    except exc, inst:
+    except exc as inst:
         print 'raised', inst.__class__.__name__
     else:
         print 'no exception?!'
@@ -188,10 +188,10 @@
 
 try:
     testui(user='abc', group='def', silent=True)
-except error.ParseError, inst:
+except error.ParseError as inst:
     print inst
 
 try:
     testui(debug=True, silent=True)
-except error.ParseError, inst:
+except error.ParseError as inst:
     print inst