summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-05-12 17:26:29 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-05-12 17:26:29 (GMT)
commit8a44d9e2806dc21d49b6feb0800bb8d3b98d499e (patch)
tree1af9e133ff01c4dd0792f1bb45368f75c2122bf0 /test
parent6d5cf1b6ff0e2d1b314fb4c60338b278785d02b4 (diff)
downloadSCons-8a44d9e2806dc21d49b6feb0800bb8d3b98d499e.zip
SCons-8a44d9e2806dc21d49b6feb0800bb8d3b98d499e.tar.gz
SCons-8a44d9e2806dc21d49b6feb0800bb8d3b98d499e.tar.bz2
Fix textfile.py breakaga on platforms with weird end-of-line conventions
Diffstat (limited to 'test')
-rw-r--r--test/textfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/textfile.py b/test/textfile.py
index 2c9f5d5..27b6b40 100644
--- a/test/textfile.py
+++ b/test/textfile.py
@@ -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])