From af735035cdaff0fa27fc396539cd51e9effe6e6c Mon Sep 17 00:00:00 2001 From: William Deegan Date: Thu, 12 May 2016 19:05:00 -0400 Subject: 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 --- test/GetBuildFailures/serial.py | 4 ++-- 1 file 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"))) -- cgit v0.12