Constant time ObjectClass handling

Andrew Bartlett abartlet at
Mon Mar 26 14:57:59 MDT 2012

On Mon, 2012-03-26 at 15:14 +0200, Jelmer Vernooij wrote:
> On Mon, Mar 26, 2012 at 11:54:42AM +1100, Andrew Bartlett wrote:
> > On Sun, 2012-03-25 at 23:42 +0200, Matthias Dieter Wallnöfer wrote:
> [...]
> > Anyway, attached is my attempted patch, and a patch to to get
> > out a bit more error information, in case it helps. 
> Note that you can specify extra error information to assertEquals,
> which will cause it to be reported as part of the assertion (so you
> don't have to skim through the output later nor always see that error
> string.
> E.g. :
> self.assertEquals(num, ERR_UNWILLING_TO_PERFORM,
>     "errstring: %s" % errstring)

Now *that* makes it all worthwhile :-)

(Seriously, it was getting frustrating to debug, but fixing that up
globally in would get our nice pretty-printed errors to the
developer, and would have made a real difference in the time debugging
this took).

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list