From a18e7c818f846ddf98200b9cce672a7e95ab2c49 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Wed, 24 Sep 2008 15:53:30 +0000 Subject: [PATCH] Python 1.5 portability in test/Execute.py. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3470 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- test/Execute.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/Execute.py b/test/Execute.py index 1ff45e8c..19583ca4 100644 --- a/test/Execute.py +++ b/test/Execute.py @@ -90,7 +90,17 @@ scons: *** Error 2 scons: *** nonexistent.in/*.*: The system cannot find the path specified """ else: - expect = """\ + # TODO(1.5): the underlying shutil.copytree() call doesn't + # add the nonexistent file name to the exception it throws. + # This goes away soon, so just accomodate the difference. + if sys.version[:3] == '1.5': + expect = """\ +scons: *** Error 1 +scons: *** Error 2 +scons: *** No such file or directory +""" + else: + expect = """\ scons: *** Error 1 scons: *** Error 2 scons: *** nonexistent.in: No such file or directory -- 2.26.2