From d31f90f2b3dc0e49c35615228f5c5ee649ec4823 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 13 Mar 2011 12:28:38 -0400 Subject: Ugh, newb mistake: Windows needs the b flag to tightly control the bytes in the file. --- test/coveragetest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/coveragetest.py b/test/coveragetest.py index ebff65a..694288f 100644 --- a/test/coveragetest.py +++ b/test/coveragetest.py @@ -145,7 +145,7 @@ class CoverageTest(TestCase): os.makedirs(dirs) # Create the file. - f = open(filename, 'w') + f = open(filename, 'wb') try: f.write(text) finally: -- cgit v1.2.1