changeset 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 e00ab6d1f0ba
children b9d5857f7b9a
files testcases.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: