Python 1.5 portability in test/Execute.py.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 24 Sep 2008 15:53:30 +0000 (15:53 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 24 Sep 2008 15:53:30 +0000 (15:53 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3470 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/Execute.py

index 1ff45e8c155d5968b8f277943f882c35f54de771..19583ca41b90b5b422182cc2f4f48d1d84f33ba1 100644 (file)
@@ -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