From 8a44d9e2806dc21d49b6feb0800bb8d3b98d499e Mon Sep 17 00:00:00 2001 From: Greg Noel Date: Tue, 12 May 2009 17:26:29 +0000 Subject: Fix textfile.py breakaga on platforms with weird end-of-line conventions --- test/textfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit v0.12