[PATCH] fix run of the user_account_control test (python problem)

Michael Adam obnox at samba.org
Mon Mar 16 10:42:49 MDT 2015

Review / push / comments appreciated.

Thanks - Michael

-------------- next part --------------
From c67327b2952bcb9273b190a1c7dc04fce7a9210c Mon Sep 17 00:00:00 2001
From: Michael Adam <obnox at samba.org>
Date: Mon, 16 Mar 2015 17:22:01 +0100
Subject: [PATCH] dsdb: fix the user_account_control test.

On my system (Fedora 21) the test fails with:

[1(0)/1 at 0s] samba4.user_account_control.python(dc)
Traceback (most recent call last):
  File "/home/obnox/devel/samba/master-push.git/source4/dsdb/tests/python/user_account_control.py", line 23, in <module>
    from subunit.run import SubunitTestRunner
ImportError: No module named subunit.run

This fixes it for me.

Signed-off-by: Michael Adam <obnox at samba.org>
 source4/dsdb/tests/python/user_account_control.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source4/dsdb/tests/python/user_account_control.py b/source4/dsdb/tests/python/user_account_control.py
index 61c208b..16c7f81 100644
--- a/source4/dsdb/tests/python/user_account_control.py
+++ b/source4/dsdb/tests/python/user_account_control.py
@@ -20,7 +20,7 @@ import base64
 sys.path.insert(0, "bin/python")
 from samba.tests.subunitrun import TestProgram, SubunitOptions
-from subunit.run import SubunitTestRunner
+from samba.subunit.run import SubunitTestRunner
 from samba.auth import system_session
 from samba.samdb import SamDB
 from samba.dcerpc import samr, security, lsa

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150316/40c1ffa6/attachment.pgp>

More information about the samba-technical mailing list