[py-svn] r7727 - py/dist/py/execnet
hpk at codespeak.net
hpk at codespeak.net
Thu Dec 2 21:24:56 CET 2004
Author: hpk
Date: Thu Dec 2 21:24:56 2004
New Revision: 7727
Modified:
py/dist/py/execnet/inputoutput.py
Log:
another windows issue with binary streams.
execnet needs to communicate 8-bit clean.
Modified: py/dist/py/execnet/inputoutput.py
==============================================================================
--- py/dist/py/execnet/inputoutput.py (original)
+++ py/dist/py/execnet/inputoutput.py Thu Dec 2 21:24:56 2004
@@ -57,6 +57,10 @@
error = (IOError, OSError, EOFError)
def __init__(self, infile, outfile):
+ if sys.platform == 'win32':
+ import msvcrt
+ msvcrt.setmode(infile.fileno(), os.O_BINARY)
+ msvcrt.setmode(outfile.fileno(), os.O_BINARY)
self.outfile, self.infile = infile, outfile
self.readable = self.writeable = True
More information about the pytest-commit
mailing list