[Python-Dev] Re: [Python-checkins] python/dist/src/Lib/email/test test_email_codecs.py,1.1,1.2

Guido van Rossum guido@python.org
Sun, 28 Jul 2002 11:17:17 -0400


[Barry]
> > > A better fix, IMO, is to recognize that the `test' package has become
> > > a full fledged standard lib package (a Good Thing, IMO), heed our own
> > > admonitions not to do relative imports, and change the various places
> > > in the test suite that "import test_support" (or equiv) to "import
> > > test.test_support" (or equiv).

[Guido]
> > Good idea.

[Neal]
> Shouldn't this also be done for from XXX import YYY?
> 
>     grep test_support `find Lib -name '*.py'` | \
> 	egrep -v '(from test |test\.test_support)' | grep import

Good catch!  Looks like Barry hardly scratched the surface of this.
I *thought* his checkin which claimed to fix this throughout Lib/test
was a tad small. :-(

--Guido van Rossum (home page: http://www.python.org/~guido/)