fix test.py bug on windows and stomped failure messages

This commit is contained in:
Chris Jones 2011-07-04 16:14:04 -04:00
parent 637708cf1a
commit eb17d81316
2 changed files with 27 additions and 22 deletions

View file

@ -99,7 +99,7 @@ class PDFTestHandler(BaseHTTPRequestHandler):
self.send_header("Content-Type", MIMEs[ext])
self.send_header("Content-Length", os.path.getsize(path))
self.end_headers()
with open(path) as f:
with open(path, "rb") as f:
self.wfile.write(f.read())
def do_GET(self):