[Python-Dev] Python Unit Tests
Nick Coghlan
ncoghlan at gmail.com
Tue Feb 8 15:17:51 CET 2011
On Tue, Feb 8, 2011 at 11:00 AM, R. David Murray <rdmurray at bitdance.com> wrote:
> There are some ResourceWarnings we haven't cured yet (the ResourceWarning is
> a fairly new innovation). I'm not sure why they don't show up when
> you run the tests individually.
Almost certainly the missing "-uall" meant the relevant tests didn't
actually run the second time around.
>> 9 skips unexpected on linux2:
>> test_bz2 test_dbm_gnu test_dbm_ndbm test_readline test_ssl
>> test_tcl test_tk test_ttk_guionly test_ttk_textonly
>
> These would be because you don't have the correct system/development
> libraries installed for bz2, gnudbm, ndbm, readline, openssl,
> tcl, and tk when you compiled your Python. So, these skips are
> actually expected if you don't have those libraries, but if you want
> a complete development/test environment you should install the
> necessary packages and recompile.
I put together a list a while back of the minimal set of dev packages
needed to do a full Python build on Kubuntu:
http://www.boredomandlaziness.org/2010/01/kubuntu-dev-packages-to-build-python.html
The apt-get build dependencies command added as a comment to that post
should work on any apt-based Linux variant (although, at least on
Kubuntu, it brings down quite a lot of stuff you don't actually need
in order to build Python). Presumably there's something similar
available for other packaging systems (if not, the minimal package
list may still provide a useful starting point)
I don't believe anything that platform specific is in the dev guide,
though (it wasn't in the old README files, that's why I made my own
list for later reference).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list