py3: use lower-cased module 'email.message' in test-import.t
authorYuya Nishihara <yuya@tcha.org>
Sun, 08 Apr 2018 14:46:24 +0900
changeset 37466 abd9f5ec1d82
parent 37465 39e5e346eba7
child 37467 9bf65d1b43a6
py3: use lower-cased module 'email.message' in test-import.t
tests/test-import.t
--- 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'