[issue6622] [RFC] wrong variable used in Lib/poplib.py

Mark Dickinson report at bugs.python.org
Thu Aug 6 16:35:31 CEST 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

> Could someone ensure the attached unittest does the job, I blindly
> copied from above...

Unfortunately it doesn't, because the apop method needs a timestamp in the 
welcome message in order to work.  I've adapted it to make this work---see 
attached patch 'issue6622.patch'.

> I don't know how to launch an unittest with the svn 'Lib', it takes
> the system one and just messing with PYTHONPATH won't work either.

I'm not entirely sure what you're asking here.  On OS X, I usually do 
something like the following at a Terminal prompt:

newton:py3k dickinsm$ ./python.exe Lib/test/test_poplib.py

For better control over output and various other things, use the regrtest 
module:

newton:py3k dickinsm$ ./python.exe Lib/test/regrtest.py -v test_poplib

(execute Lib/test/regrtest.py --help to see a list of options).

----------
Added file: http://bugs.python.org/file14669/issue6622.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6622>
_______________________________________


More information about the Python-bugs-list mailing list