summaryrefslogtreecommitdiff
path: root/test/textfile.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-05-12 17:26:29 +0000
committerGreg Noel <GregNoel@tigris.org>2009-05-12 17:26:29 +0000
commit9a84379a68eb83d1de88e0c5be425ce8caaf85ab (patch)
tree1af9e133ff01c4dd0792f1bb45368f75c2122bf0 /test/textfile.py
parent16035b754d51b9bd83220863597e67f2c7082e3f (diff)
downloadscons-9a84379a68eb83d1de88e0c5be425ce8caaf85ab.tar.gz
Fix textfile.py breakaga on platforms with weird end-of-line conventions
Diffstat (limited to 'test/textfile.py')
-rw-r--r--test/textfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/textfile.py b/test/textfile.py
index 2c9f5d55..27b6b40b 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])