[MERGE] fix blackbox failures when run from windows executable

Andrew Bennetts andrew at canonical.com
Mon Aug 11 03:22:48 BST 2008


Robert Collins wrote:
> On Mon, 2008-08-11 at 09:42 +1000, Andrew Bennetts wrote:
> > > +        if hasattr(sys, "frozen"):
> > > +            raise TestSkipped("can't test sources in frozen
> > distributions.")
> > 
> > Again, 3-arg getattr would be good.
> 
> Should we create a source check for hasattr? (Or monkey patch it to not
> exist :P)

A source check in the test suite would be good I think.  I think monkey patching
has an unacceptable risk of interfering with plugins and libraries used by
plugins, unfortunately.

-Andrew.




More information about the bazaar mailing list