1. Ned Batchelder
  2. coverage.py

Commits

Ned Batchelder  committed c8aa1a4

Ugh, newb mistake: Windows needs the b flag to tightly control the bytes in the file.

  • Participants
  • Parent commits 740b68e
  • Branches default

Comments (0)

Files changed (1)

File test/coveragetest.py

View file
  • Ignore whitespace
             os.makedirs(dirs)
 
         # Create the file.
-        f = open(filename, 'w')
+        f = open(filename, 'wb')
         try:
             f.write(text)
         finally: