diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:48:25 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:48:25 (GMT) |
commit | 806a46d96ce3eba5547371c3acc851d480a4c9a2 (patch) | |
tree | db2c24cc267c14b510966432b96a05a6f734963f /test/Subst/AllowSubstExceptions.py | |
parent | 5422f3bcc3e369272f06a8cfb8a9b29f048da790 (diff) | |
download | SCons-806a46d96ce3eba5547371c3acc851d480a4c9a2.zip SCons-806a46d96ce3eba5547371c3acc851d480a4c9a2.tar.gz SCons-806a46d96ce3eba5547371c3acc851d480a4c9a2.tar.bz2 |
Fix except syntax, replacing comma with as
Diffstat (limited to 'test/Subst/AllowSubstExceptions.py')
-rw-r--r-- | test/Subst/AllowSubstExceptions.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Subst/AllowSubstExceptions.py b/test/Subst/AllowSubstExceptions.py index 7f2a9aa..0332e68 100644 --- a/test/Subst/AllowSubstExceptions.py +++ b/test/Subst/AllowSubstExceptions.py @@ -52,37 +52,37 @@ assert env.subst_list('${INDEX[999]}') == [[]] AllowSubstExceptions() try: env.subst('$NAME') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") try: env.subst('${NAME}') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") try: env.subst('${INDEX[999]}') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") try: env.subst_list('$NAME') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") try: env.subst_list('${NAME}') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") try: env.subst_list('${INDEX[999]}') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") try: env.subst('${1/0}') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") try: env.subst_list('${1/0}') -except SCons.Errors.UserError, e: print(e) +except SCons.Errors.UserError as e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") AllowSubstExceptions(ZeroDivisionError) |