[MERGE][0.14] Skip tests when 'tools' is not available
aaron.bentley at utoronto.ca
Thu Jan 18 17:26:17 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Wouter van Heyst wrote:
> On Thu, Jan 18, 2007 at 06:16:26PM +0200, Alexander Belchenko wrote:
>>I.e. when running on installed copy we just check if in directory with
>>bzr presents both bzrlib and tools packages, this check fails and we
>>fall to create test class itself. I'd like to check not only presence
>>of tools package because this name is too general.
> I prefer John's solution to skip the tests if tools.doc_generate can't
> be imported.
I think the ideal is to skip tools tests like this if bzr is installed,
and to run them otherwise. The way TurboGears distinguishes between
installed and source copies is it checks for the presence of setup.py,
which I thought was a neat solution.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar