Mercurial > ~astiob > upreckon > hgweb
diff testcases.py @ 69:c0f1b87013ad
Fixed a crash on Python 3 on POSIX
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 03 Jan 2011 01:07:02 +0200 |
parents | fcb5ab97f08e |
children | 1bee3a0beeb5 |
line wrap: on
line diff
--- a/testcases.py Mon Dec 27 23:14:27 2010 +0200 +++ b/testcases.py Mon Jan 03 01:07:02 2011 +0200 @@ -196,7 +196,7 @@ if preexec_fn_: preexec_fn_() fcntl.fcntl(write, fcntl.F_SETFD, fcntl.fcntl(write, fcntl.F_GETFD) | getattr(fcntl, 'FD_CLOEXEC', 1)) - fwrite = os.fdopen(write, 'ab') + fwrite = os.fdopen(write, 'wb') pickle.dump(clock(), fwrite, 1) kwargs['preexec_fn'] = preexec_fn try: