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

login
register
mail settings
Submitter Yuya Nishihara
Date April 8, 2018, 9:09 a.m.
Message ID <017138c795b7bea75181.1523178585@mimosa>
Download mbox | patch
Permalink /patch/30558/
State Accepted
Headers show

Comments

Yuya Nishihara - April 8, 2018, 9:09 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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'