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 | d1feae87031c974cdd6c7d202c289804909911e7 (patch) | |
tree | b8467a20a8afa0e1556d69396d3ebd9b59bad2b9 | |
parent | 2748b0dc7ec5fe7dbfb8c1ab6677c7c17999b25b (diff) | |
download | python-coveragepy-git-d1feae87031c974cdd6c7d202c289804909911e7.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 ebff65aa..694288f0 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: |