Unittest import error

Zahari Zahariev zahari.zahariev at postpath.com
Thu May 13 00:57:32 MDT 2010


Thanks Kamen.

----- Original Message -----
> From: samba-technical-bounces at lists.samba.org <samba-technical-bounces at lists.samba.org>
> To: Zahari Zahariev <zahari.zahariev at gmail.com>
> Cc: samba-technical at lists.samba.org <samba-technical at lists.samba.org>
> Sent: Wednesday, May 12, 2010 5:40:48 PM (GMT+02:00) Athens, Bucharest, Istanbul
> Subject: Re: Unittest import error

> > 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