cpython: 0d8afab5249f (original) (raw)

Mercurial > cpython

changeset 68819:0d8afab5249f

Correctly move email package tests to Lib/test.

R David Murray rdmurray@bitdance.com
date Mon, 21 Mar 2011 17:17:06 -0400
parents 7d5d859c959e
children f1794337cccb
files Lib/email/test/__init__.py Lib/email/test/data/PyBanner048.gif Lib/email/test/data/audiotest.au Lib/email/test/data/msg_01.txt Lib/email/test/data/msg_02.txt Lib/email/test/data/msg_03.txt Lib/email/test/data/msg_04.txt Lib/email/test/data/msg_05.txt Lib/email/test/data/msg_06.txt Lib/email/test/data/msg_07.txt Lib/email/test/data/msg_08.txt Lib/email/test/data/msg_09.txt Lib/email/test/data/msg_10.txt Lib/email/test/data/msg_11.txt Lib/email/test/data/msg_12.txt Lib/email/test/data/msg_12a.txt Lib/email/test/data/msg_13.txt Lib/email/test/data/msg_14.txt Lib/email/test/data/msg_15.txt Lib/email/test/data/msg_16.txt Lib/email/test/data/msg_17.txt Lib/email/test/data/msg_18.txt Lib/email/test/data/msg_19.txt Lib/email/test/data/msg_20.txt Lib/email/test/data/msg_21.txt Lib/email/test/data/msg_22.txt Lib/email/test/data/msg_23.txt Lib/email/test/data/msg_24.txt Lib/email/test/data/msg_25.txt Lib/email/test/data/msg_26.txt Lib/email/test/data/msg_27.txt Lib/email/test/data/msg_28.txt Lib/email/test/data/msg_29.txt Lib/email/test/data/msg_30.txt Lib/email/test/data/msg_31.txt Lib/email/test/data/msg_32.txt Lib/email/test/data/msg_33.txt Lib/email/test/data/msg_34.txt Lib/email/test/data/msg_35.txt Lib/email/test/data/msg_36.txt Lib/email/test/data/msg_37.txt Lib/email/test/data/msg_38.txt Lib/email/test/data/msg_39.txt Lib/email/test/data/msg_40.txt Lib/email/test/data/msg_41.txt Lib/email/test/data/msg_42.txt Lib/email/test/data/msg_43.txt Lib/email/test/data/msg_44.txt Lib/email/test/data/msg_45.txt Lib/email/test/data/msg_46.txt Lib/email/test/test_email.py Lib/email/test/test_email_codecs.py Lib/email/test/test_email_torture.py Lib/test/test_email.py Lib/test/test_email/__init__.py Lib/test/test_email/data/PyBanner048.gif Lib/test/test_email/data/audiotest.au Lib/test/test_email/data/msg_01.txt Lib/test/test_email/data/msg_02.txt Lib/test/test_email/data/msg_03.txt Lib/test/test_email/data/msg_04.txt Lib/test/test_email/data/msg_05.txt Lib/test/test_email/data/msg_06.txt Lib/test/test_email/data/msg_07.txt Lib/test/test_email/data/msg_08.txt Lib/test/test_email/data/msg_09.txt Lib/test/test_email/data/msg_10.txt Lib/test/test_email/data/msg_11.txt Lib/test/test_email/data/msg_12.txt Lib/test/test_email/data/msg_12a.txt Lib/test/test_email/data/msg_13.txt Lib/test/test_email/data/msg_14.txt Lib/test/test_email/data/msg_15.txt Lib/test/test_email/data/msg_16.txt Lib/test/test_email/data/msg_17.txt Lib/test/test_email/data/msg_18.txt Lib/test/test_email/data/msg_19.txt Lib/test/test_email/data/msg_20.txt Lib/test/test_email/data/msg_21.txt Lib/test/test_email/data/msg_22.txt Lib/test/test_email/data/msg_23.txt Lib/test/test_email/data/msg_24.txt Lib/test/test_email/data/msg_25.txt Lib/test/test_email/data/msg_26.txt Lib/test/test_email/data/msg_27.txt Lib/test/test_email/data/msg_28.txt Lib/test/test_email/data/msg_29.txt Lib/test/test_email/data/msg_30.txt Lib/test/test_email/data/msg_31.txt Lib/test/test_email/data/msg_32.txt Lib/test/test_email/data/msg_33.txt Lib/test/test_email/data/msg_34.txt Lib/test/test_email/data/msg_35.txt Lib/test/test_email/data/msg_36.txt Lib/test/test_email/data/msg_37.txt Lib/test/test_email/data/msg_38.txt Lib/test/test_email/data/msg_39.txt Lib/test/test_email/data/msg_40.txt Lib/test/test_email/data/msg_41.txt Lib/test/test_email/data/msg_42.txt Lib/test/test_email/data/msg_43.txt Lib/test/test_email/data/msg_44.txt Lib/test/test_email/data/msg_45.txt Lib/test/test_email/data/msg_46.txt Lib/test/test_email/test_asian_codecs.py Lib/test/test_email/test_email.py Lib/test/test_email/tourture_test.py Misc/NEWS
diffstat 55 files changed, 22 insertions(+), 47 deletions(-)[+] [-] Lib/test/test_email.py 14 Lib/email/test/__init__.py => Lib/test/test_email/__init__.py 13 Lib/email/test/data/PyBanner048.gif => Lib/test/test_email/data/PyBanner048.gif 0 Lib/email/test/data/audiotest.au => Lib/test/test_email/data/audiotest.au 0 Lib/email/test/data/msg_01.txt => Lib/test/test_email/data/msg_01.txt 0 Lib/email/test/data/msg_02.txt => Lib/test/test_email/data/msg_02.txt 0 Lib/email/test/data/msg_03.txt => Lib/test/test_email/data/msg_03.txt 0 Lib/email/test/data/msg_04.txt => Lib/test/test_email/data/msg_04.txt 0 Lib/email/test/data/msg_05.txt => Lib/test/test_email/data/msg_05.txt 0 Lib/email/test/data/msg_06.txt => Lib/test/test_email/data/msg_06.txt 0 Lib/email/test/data/msg_07.txt => Lib/test/test_email/data/msg_07.txt 0 Lib/email/test/data/msg_08.txt => Lib/test/test_email/data/msg_08.txt 0 Lib/email/test/data/msg_09.txt => Lib/test/test_email/data/msg_09.txt 0 Lib/email/test/data/msg_10.txt => Lib/test/test_email/data/msg_10.txt 0 Lib/email/test/data/msg_11.txt => Lib/test/test_email/data/msg_11.txt 0 Lib/email/test/data/msg_12.txt => Lib/test/test_email/data/msg_12.txt 0 Lib/email/test/data/msg_12a.txt => Lib/test/test_email/data/msg_12a.txt 0 Lib/email/test/data/msg_13.txt => Lib/test/test_email/data/msg_13.txt 0 Lib/email/test/data/msg_14.txt => Lib/test/test_email/data/msg_14.txt 0 Lib/email/test/data/msg_15.txt => Lib/test/test_email/data/msg_15.txt 0 Lib/email/test/data/msg_16.txt => Lib/test/test_email/data/msg_16.txt 0 Lib/email/test/data/msg_17.txt => Lib/test/test_email/data/msg_17.txt 0 Lib/email/test/data/msg_18.txt => Lib/test/test_email/data/msg_18.txt 0 Lib/email/test/data/msg_19.txt => Lib/test/test_email/data/msg_19.txt 0 Lib/email/test/data/msg_20.txt => Lib/test/test_email/data/msg_20.txt 0 Lib/email/test/data/msg_21.txt => Lib/test/test_email/data/msg_21.txt 0 Lib/email/test/data/msg_22.txt => Lib/test/test_email/data/msg_22.txt 0 Lib/email/test/data/msg_23.txt => Lib/test/test_email/data/msg_23.txt 0 Lib/email/test/data/msg_24.txt => Lib/test/test_email/data/msg_24.txt 0 Lib/email/test/data/msg_25.txt => Lib/test/test_email/data/msg_25.txt 0 Lib/email/test/data/msg_26.txt => Lib/test/test_email/data/msg_26.txt 0 Lib/email/test/data/msg_27.txt => Lib/test/test_email/data/msg_27.txt 0 Lib/email/test/data/msg_28.txt => Lib/test/test_email/data/msg_28.txt 0 Lib/email/test/data/msg_29.txt => Lib/test/test_email/data/msg_29.txt 0 Lib/email/test/data/msg_30.txt => Lib/test/test_email/data/msg_30.txt 0 Lib/email/test/data/msg_31.txt => Lib/test/test_email/data/msg_31.txt 0 Lib/email/test/data/msg_32.txt => Lib/test/test_email/data/msg_32.txt 0 Lib/email/test/data/msg_33.txt => Lib/test/test_email/data/msg_33.txt 0 Lib/email/test/data/msg_34.txt => Lib/test/test_email/data/msg_34.txt 0 Lib/email/test/data/msg_35.txt => Lib/test/test_email/data/msg_35.txt 0 Lib/email/test/data/msg_36.txt => Lib/test/test_email/data/msg_36.txt 0 Lib/email/test/data/msg_37.txt => Lib/test/test_email/data/msg_37.txt 0 Lib/email/test/data/msg_38.txt => Lib/test/test_email/data/msg_38.txt 0 Lib/email/test/data/msg_39.txt => Lib/test/test_email/data/msg_39.txt 0 Lib/email/test/data/msg_40.txt => Lib/test/test_email/data/msg_40.txt 0 Lib/email/test/data/msg_41.txt => Lib/test/test_email/data/msg_41.txt 0 Lib/email/test/data/msg_42.txt => Lib/test/test_email/data/msg_42.txt 0 Lib/email/test/data/msg_43.txt => Lib/test/test_email/data/msg_43.txt 0 Lib/email/test/data/msg_44.txt => Lib/test/test_email/data/msg_44.txt 0 Lib/email/test/data/msg_45.txt => Lib/test/test_email/data/msg_45.txt 0 Lib/email/test/data/msg_46.txt => Lib/test/test_email/data/msg_46.txt 0 Lib/email/test/test_email_codecs.py => Lib/test/test_email/test_asian_codecs.py 15 Lib/email/test/test_email.py => Lib/test/test_email/test_email.py 22 Lib/email/test/test_email_torture.py => Lib/test/test_email/tourture_test.py 0 Misc/NEWS 5

line wrap: on

line diff

deleted file mode 100644 --- a/Lib/test/test_email.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (C) 2001-2007 Python Software Foundation -# email package unit tests - -# The specific tests now live in Lib/email/test -from email.test.test_email import suite -from email.test.test_email_codecs import suite as codecs_suite -from test import support - -def test_main():

- -if name == 'main':

rename from Lib/email/test/init.py rename to Lib/test/test_email/init.py --- a/Lib/email/test/init.py +++ b/Lib/test/test_email/init.py @@ -0,0 +1,13 @@ +import os +import sys +import unittest +import test.support + +# used by regrtest and main. +def test_main():

rename from Lib/email/test/data/PyBanner048.gif rename to Lib/test/test_email/data/PyBanner048.gif

rename from Lib/email/test/data/audiotest.au rename to Lib/test/test_email/data/audiotest.au

rename from Lib/email/test/data/msg_01.txt rename to Lib/test/test_email/data/msg_01.txt

rename from Lib/email/test/data/msg_02.txt rename to Lib/test/test_email/data/msg_02.txt

rename from Lib/email/test/data/msg_03.txt rename to Lib/test/test_email/data/msg_03.txt

rename from Lib/email/test/data/msg_04.txt rename to Lib/test/test_email/data/msg_04.txt

rename from Lib/email/test/data/msg_05.txt rename to Lib/test/test_email/data/msg_05.txt

rename from Lib/email/test/data/msg_06.txt rename to Lib/test/test_email/data/msg_06.txt

rename from Lib/email/test/data/msg_07.txt rename to Lib/test/test_email/data/msg_07.txt

rename from Lib/email/test/data/msg_08.txt rename to Lib/test/test_email/data/msg_08.txt

rename from Lib/email/test/data/msg_09.txt rename to Lib/test/test_email/data/msg_09.txt

rename from Lib/email/test/data/msg_10.txt rename to Lib/test/test_email/data/msg_10.txt

rename from Lib/email/test/data/msg_11.txt rename to Lib/test/test_email/data/msg_11.txt

rename from Lib/email/test/data/msg_12.txt rename to Lib/test/test_email/data/msg_12.txt

rename from Lib/email/test/data/msg_12a.txt rename to Lib/test/test_email/data/msg_12a.txt

rename from Lib/email/test/data/msg_13.txt rename to Lib/test/test_email/data/msg_13.txt

rename from Lib/email/test/data/msg_14.txt rename to Lib/test/test_email/data/msg_14.txt

rename from Lib/email/test/data/msg_15.txt rename to Lib/test/test_email/data/msg_15.txt

rename from Lib/email/test/data/msg_16.txt rename to Lib/test/test_email/data/msg_16.txt

rename from Lib/email/test/data/msg_17.txt rename to Lib/test/test_email/data/msg_17.txt

rename from Lib/email/test/data/msg_18.txt rename to Lib/test/test_email/data/msg_18.txt

rename from Lib/email/test/data/msg_19.txt rename to Lib/test/test_email/data/msg_19.txt

rename from Lib/email/test/data/msg_20.txt rename to Lib/test/test_email/data/msg_20.txt

rename from Lib/email/test/data/msg_21.txt rename to Lib/test/test_email/data/msg_21.txt

rename from Lib/email/test/data/msg_22.txt rename to Lib/test/test_email/data/msg_22.txt

rename from Lib/email/test/data/msg_23.txt rename to Lib/test/test_email/data/msg_23.txt

rename from Lib/email/test/data/msg_24.txt rename to Lib/test/test_email/data/msg_24.txt

rename from Lib/email/test/data/msg_25.txt rename to Lib/test/test_email/data/msg_25.txt

rename from Lib/email/test/data/msg_26.txt rename to Lib/test/test_email/data/msg_26.txt

rename from Lib/email/test/data/msg_27.txt rename to Lib/test/test_email/data/msg_27.txt

rename from Lib/email/test/data/msg_28.txt rename to Lib/test/test_email/data/msg_28.txt

rename from Lib/email/test/data/msg_29.txt rename to Lib/test/test_email/data/msg_29.txt

rename from Lib/email/test/data/msg_30.txt rename to Lib/test/test_email/data/msg_30.txt

rename from Lib/email/test/data/msg_31.txt rename to Lib/test/test_email/data/msg_31.txt

rename from Lib/email/test/data/msg_32.txt rename to Lib/test/test_email/data/msg_32.txt

rename from Lib/email/test/data/msg_33.txt rename to Lib/test/test_email/data/msg_33.txt

rename from Lib/email/test/data/msg_34.txt rename to Lib/test/test_email/data/msg_34.txt

rename from Lib/email/test/data/msg_35.txt rename to Lib/test/test_email/data/msg_35.txt

rename from Lib/email/test/data/msg_36.txt rename to Lib/test/test_email/data/msg_36.txt

rename from Lib/email/test/data/msg_37.txt rename to Lib/test/test_email/data/msg_37.txt

rename from Lib/email/test/data/msg_38.txt rename to Lib/test/test_email/data/msg_38.txt

rename from Lib/email/test/data/msg_39.txt rename to Lib/test/test_email/data/msg_39.txt

rename from Lib/email/test/data/msg_40.txt rename to Lib/test/test_email/data/msg_40.txt

rename from Lib/email/test/data/msg_41.txt rename to Lib/test/test_email/data/msg_41.txt

rename from Lib/email/test/data/msg_42.txt rename to Lib/test/test_email/data/msg_42.txt

rename from Lib/email/test/data/msg_43.txt rename to Lib/test/test_email/data/msg_43.txt

rename from Lib/email/test/data/msg_44.txt rename to Lib/test/test_email/data/msg_44.txt

rename from Lib/email/test/data/msg_45.txt rename to Lib/test/test_email/data/msg_45.txt

rename from Lib/email/test/data/msg_46.txt rename to Lib/test/test_email/data/msg_46.txt

rename from Lib/email/test/test_email_codecs.py rename to Lib/test/test_email/test_asian_codecs.py --- a/Lib/email/test/test_email_codecs.py +++ b/Lib/test/test_email/test_asian_codecs.py @@ -5,7 +5,7 @@ import unittest from test.support import run_unittest -from email.test.test_email import TestEmailBase +from test.test_email.test_email import TestEmailBase from email.charset import Charset from email.header import Header, decode_header from email.message import Message @@ -78,16 +78,5 @@ Hello World! =?iso-2022-jp?b?GyRCJU8lbSE -def suite():

- - -def test_main():

- - - if name == 'main':

rename from Lib/email/test/test_email.py rename to Lib/test/test_email/test_email.py --- a/Lib/email/test/test_email.py +++ b/Lib/test/test_email/test_email.py @@ -37,7 +37,7 @@ from email import base64mime from email import quoprimime from test.support import findfile, run_unittest, unlink -from email.test import file as landmark +from test.test_email import file as landmark NL = '\n' @@ -4142,23 +4142,5 @@ class TestSigned(TestEmailBase): -def _testclasses():

- - -def suite():

- - -def test_main():

- - - if name == 'main':

rename from Lib/email/test/test_email_torture.py rename to Lib/test/test_email/tourture_test.py

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -278,6 +278,11 @@ Tools/Demos Tests ----- +- The email test suite now lives in the Lib/test/test_email package. The test