changeset 37466:abd9f5ec1d82

py3: use lower-cased module 'email.message' in test-import.t
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Apr 2018 14:46:24 +0900
parents 39e5e346eba7
children 9bf65d1b43a6
files tests/test-import.t
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-import.t	Sun Apr 08 15:41:40 2018 +0900
+++ b/tests/test-import.t	Sun Apr 08 14:46:24 2018 +0900
@@ -285,8 +285,8 @@
   $ rm -r b
 
   $ cat > mkmsg.py <<EOF
-  > import email.Message, sys
-  > msg = email.Message.Message()
+  > import email.message, sys
+  > msg = email.message.Message()
   > patch = open(sys.argv[1], 'rb').read()
   > msg.set_payload('email commit message\n' + patch)
   > msg['Subject'] = 'email patch'
@@ -383,8 +383,8 @@
 The '---' tests the gitsendmail handling without proper mail headers
 
   $ cat > mkmsg2.py <<EOF
-  > import email.Message, sys
-  > msg = email.Message.Message()
+  > import email.message, sys
+  > msg = email.message.Message()
   > patch = open(sys.argv[1], 'rb').read()
   > msg.set_payload('email patch\n\nnext line\n---\n' + patch)
   > msg['Subject'] = '[PATCH] email patch'