##// END OF EJS Templates
py3: use lower-cased module 'email.message' in test-import.t
Yuya Nishihara -
r37484:abd9f5ec default
parent child Browse files
Show More
@@ -285,8 +285,8 b' override commit message'
285 $ rm -r b
285 $ rm -r b
286
286
287 $ cat > mkmsg.py <<EOF
287 $ cat > mkmsg.py <<EOF
288 > import email.Message, sys
288 > import email.message, sys
289 > msg = email.Message.Message()
289 > msg = email.message.Message()
290 > patch = open(sys.argv[1], 'rb').read()
290 > patch = open(sys.argv[1], 'rb').read()
291 > msg.set_payload('email commit message\n' + patch)
291 > msg.set_payload('email commit message\n' + patch)
292 > msg['Subject'] = 'email patch'
292 > msg['Subject'] = 'email patch'
@@ -383,8 +383,8 b' subject: duplicate detection, removal of'
383 The '---' tests the gitsendmail handling without proper mail headers
383 The '---' tests the gitsendmail handling without proper mail headers
384
384
385 $ cat > mkmsg2.py <<EOF
385 $ cat > mkmsg2.py <<EOF
386 > import email.Message, sys
386 > import email.message, sys
387 > msg = email.Message.Message()
387 > msg = email.message.Message()
388 > patch = open(sys.argv[1], 'rb').read()
388 > patch = open(sys.argv[1], 'rb').read()
389 > msg.set_payload('email patch\n\nnext line\n---\n' + patch)
389 > msg.set_payload('email patch\n\nnext line\n---\n' + patch)
390 > msg['Subject'] = '[PATCH] email patch'
390 > msg['Subject'] = '[PATCH] email patch'
General Comments 0
You need to be logged in to leave comments. Login now