bzrtools test suite bug: NameError: global name 'NoPyBaz' is not defined

John Arbash Meinel john at arbash-meinel.com
Thu Aug 31 22:23:26 BST 2006


Etienne Goyer wrote:
> Andrew Bennetts wrote:
>> With current bzrtools, "bzr selftest" causes this error if pybaz is not
>> installed:
>>
>>   File "/home/andrew/.bazaar/plugins/bzrtools/__init__.py", line 629,
>> in test_suite
>>     except NoPyBaz:
>> NameError: global name 'NoPyBaz' is not defined
>>
>> There seems to be a missing import.
> 
> Actually, if you have bazaar and pybaz installed, the selftest pass.
> 
> If it was possible to skip the test involving bazaar and pybaz when
> these are not present, I think that would be the best way to fix that
> problem.
> 

Well, it looks like it is *trying* to skip if there is NoPyBaz.
But the code which is catching the error forgot to actually import the
exception it is trying to catch.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060831/a001738e/attachment.pgp 


More information about the bazaar mailing list