Unittest import error

Kamen Mazdrashki kamenim at samba.org
Wed May 12 08:47:20 MDT 2010


On Wed, May 12, 2010 at 16:15, Zahari Zahariev <zahari.zahariev at gmail.com>wrote:

> I wanted to start some manual unittest files and I bumped into an error:
>
> root at darkstar:~/samba-master/source4# python lib/ldb/tests/python/ldap.py
> localhost -U%
> Traceback (most recent call last):
>  File "lib/ldb/tests/python/ldap.py", line 31, in <module>
>    from subunit.run import SubunitTestRunner
> ImportError: No module named subunit.run
>
> Can you tell why does this happen?
>
> Yeah,

you need to execute the test like this:
PYTHONPATH=$samba_checkout_dir/lib/subunit/python:$PYTHONPATH python
lib/ldb/tests/python/ldap.py [args]


-- 
CU,
Kamen Mazdrashki
kamen.mazdrashki at postpath.com
http://gitweb.samba.org/?p=kamenim/samba.git;a=summary
-------------------------------------
CISCO SYSTEMS BULGARIA EOOD
http://www.cisco.com/global/BG/


More information about the samba-technical mailing list