diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-05-12 23:05:00 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-05-12 23:05:00 (GMT) |
commit | af735035cdaff0fa27fc396539cd51e9effe6e6c (patch) | |
tree | 5033f38c1a870d01b5e4e73c1073604d9033b24b | |
parent | 254e647fbe03e280af8f595fff9606d8ec003972 (diff) | |
download | SCons-af735035cdaff0fa27fc396539cd51e9effe6e6c.zip SCons-af735035cdaff0fa27fc396539cd51e9effe6e6c.tar.gz SCons-af735035cdaff0fa27fc396539cd51e9effe6e6c.tar.bz2 |
Seeems like EnvironmentError is not yielding the proper error output from SCons under __future__. py 3.5 EnvironmentError is an alias for OSError. Changing to OSError makes the test pass
-rw-r--r-- | test/GetBuildFailures/serial.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/GetBuildFailures/serial.py b/test/GetBuildFailures/serial.py index fb59c7c..55a990f 100644 --- a/test/GetBuildFailures/serial.py +++ b/test/GetBuildFailures/serial.py @@ -82,8 +82,8 @@ Command('f08', 'f08.in', raiseExcAction(SCons.Errors.UserError("My User Error")) Command('f09', 'f09.in', returnExcAction(SCons.Errors.UserError("My User Error"))) Command('f10', 'f10.in', raiseExcAction(MyBuildError(errstr="My Build Error", status=7))) Command('f11', 'f11.in', returnExcAction(MyBuildError(errstr="My Build Error", status=7))) -Command('f12', 'f12.in', raiseExcAction(EnvironmentError(123, "My EnvironmentError", "f12"))) -Command('f13', 'f13.in', returnExcAction(EnvironmentError(123, "My EnvironmentError", "f13"))) +Command('f12', 'f12.in', raiseExcAction(OSError(123, "My EnvironmentError", "f12"))) +Command('f13', 'f13.in', returnExcAction(OSError(123, "My EnvironmentError", "f13"))) Command('f14', 'f14.in', raiseExcAction(SCons.Errors.InternalError("My InternalError"))) Command('f15', 'f15.in', returnExcAction(SCons.Errors.InternalError("My InternalError"))) |