]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Restore test_email for a1. It passes completely.
authorBarry Warsaw <barry@python.org>
Fri, 31 Aug 2007 11:19:21 +0000 (11:19 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 31 Aug 2007 11:19:21 +0000 (11:19 +0000)
Lib/email/test/test_email.py
Lib/test/test_email.py [new file with mode: 0644]

index c2103a666c8832e467fbb17851f09550898b89f6..74a3c9d39715fcd118078909ee76d604122eb4a1 100644 (file)
@@ -851,10 +851,10 @@ iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
         # XXX This splitting is all wrong.  It the first value line should be
         # snug against the field name.
         eq(msg.as_string(maxheaderlen=78), """\
-Face-1:
+Face-1:\x20
 \tiVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
  locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp
-Face-2:
+Face-2:\x20
  iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
  locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp
 
diff --git a/Lib/test/test_email.py b/Lib/test/test_email.py
new file mode 100644 (file)
index 0000000..736c393
--- /dev/null
@@ -0,0 +1,13 @@
+# Copyright (C) 2001-2007 Python Software Foundation
+# email package unit tests
+
+import unittest
+# The specific tests now live in Lib/email/test
+from email.test.test_email import suite
+from test import test_support
+
+def test_main():
+    test_support.run_unittest(suite())
+
+if __name__ == '__main__':
+    test_main()