summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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])