[SCM] Samba Shared Repository - branch master updated
Jelmer Vernooij
jelmer at samba.org
Fri May 14 04:05:48 MDT 2010
On Thu, 2010-05-13 at 15:43 -0500, Matthias Dieter Wallnöfer wrote:
> diff --git a/source4/scripting/python/samba/netcmd/domainlevel.py b/source4/scripting/python/samba/netcmd/domainlevel.py
> index 310747a..72559bb 100644
> --- a/source4/scripting/python/samba/netcmd/domainlevel.py
> +++ b/source4/scripting/python/samba/netcmd/domainlevel.py
> @@ -200,7 +200,7 @@ class cmd_domainlevel(Command):
> try:
> samdb.modify(m)
> except LdbError, (num, _):
> - pass
> + self.assertEquals(num, ldb.ERR_UNWILLING_TO_PERFORM)
^^^ This doesn't work, assertEquals is on TestCase. You'd probably want
sometihng like:
if num != ldb.ERR_UNWILLING_TO_PERFORM:
raise
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100514/63cbeac0/attachment.pgp>
More information about the samba-technical
mailing list