[PATCH 2 of 7] py3: use lower-cased module 'email.message' in test-import.t

Yuya Nishihara yuya at tcha.org
Sun Apr 8 05:09:45 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1523166384 -32400
#      Sun Apr 08 14:46:24 2018 +0900
# Node ID 017138c795b7bea75181b759807dcd077e0a29f6
# Parent  76e926434da64ea97ab0ef540e4a71c6490aee7d
py3: use lower-cased module 'email.message' in test-import.t

diff --git a/tests/test-import.t b/tests/test-import.t
--- a/tests/test-import.t
+++ b/tests/test-import.t
@@ -285,8 +285,8 @@ override commit message
   $ 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 @@ subject: duplicate detection, removal of
 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'


More information about the Mercurial-devel mailing list