diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:48:25 -0500 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:48:25 -0500 |
commit | bbe9bf2b440592039a9ed78eaab0e23290fc138a (patch) | |
tree | db2c24cc267c14b510966432b96a05a6f734963f /test/Subst | |
parent | 4566343405cfd87c746df996ebae380ec209cd34 (diff) | |
download | scons-bbe9bf2b440592039a9ed78eaab0e23290fc138a.tar.gz |
Fix except syntax, replacing comma with as
Diffstat (limited to 'test/Subst')
-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 7f2a9aa3..0332e680 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) |