Fix textfile.py breakaga on platforms with weird end-of-line conventions
authorgregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 12 May 2009 17:26:29 +0000 (17:26 +0000)
committergregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 12 May 2009 17:26:29 +0000 (17:26 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4192 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/textfile.py

index 2c9f5d55f4c31481b594d2347b617934a1d1572b..27b6b40bae3eed76abf50db09a6dcb66c1ea7703 100644 (file)
@@ -142,7 +142,7 @@ line3a = 'This line has %subst% substitutions'
 line3b = 'This line has many substitutions'
 
 def matchem(file, lines):
-    lines = string.join(lines, '\n')
+    lines = string.join(lines, os.linesep)
     test.must_match(file, lines)
 
 matchem('text.txt', [line1, line2a, line3a])