diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-05-23 23:21:26 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-05-23 23:21:26 (GMT) |
commit | aa5a0468340338cc3423a06d6d55e1b52a713bc5 (patch) | |
tree | 71ff4e88b1e418ff32ba89ae0f4cf0b3f0d180a1 /test/Subst/AllowSubstExceptions.py | |
parent | 15bd909b178ba5271125fca6846fa8c069be79f1 (diff) | |
parent | b387e34357c968d0855c525c7e838657a957ff01 (diff) | |
download | SCons-aa5a0468340338cc3423a06d6d55e1b52a713bc5.zip SCons-aa5a0468340338cc3423a06d6d55e1b52a713bc5.tar.gz SCons-aa5a0468340338cc3423a06d6d55e1b52a713bc5.tar.bz2 |
merge python3 branch to default
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 286f189..7f2a9aa 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, 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, 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, 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, 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, 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, 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, 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, e: print(e) else: raise Exception("did not catch expected SCons.Errors.UserError") AllowSubstExceptions(ZeroDivisionError) |