diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-03-13 12:28:38 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-03-13 12:28:38 -0400 |
commit | d31f90f2b3dc0e49c35615228f5c5ee649ec4823 (patch) | |
tree | bd2d2265a460613d08473351fc60a2af697e3176 | |
parent | fe825dfa906ee4c37e192c14d24b3abe78aa94d5 (diff) | |
download | python-coveragepy-d31f90f2b3dc0e49c35615228f5c5ee649ec4823.tar.gz |
Ugh, newb mistake: Windows needs the b flag to tightly control the bytes in the file.
-rw-r--r-- | test/coveragetest.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |