tests/test-import
changeset 5530 b0ff52ec9b52
parent 5418 9b469bdb1ce1
child 5551 dccc127bfc07
--- a/tests/test-import	Sat Nov 10 17:09:56 2007 +0100
+++ b/tests/test-import	Sat Nov 10 21:30:43 2007 +0100
@@ -57,7 +57,7 @@
 cat > mkmsg.py <<EOF
 import email.Message, sys
 msg = email.Message.Message()
-msg.set_payload('email commit message\n' + open('tip.patch').read())
+msg.set_payload('email commit message\n' + open('tip.patch', 'rb').read())
 msg['Subject'] = 'email patch'
 msg['From'] = 'email patcher'
 sys.stdout.write(msg.as_string())