Hi Tycho,

El lunes, 23 de marzo de 2015, 0:51:17 (UTC+1), Tycho Andersen escribió:
>
>
> I think python-wifi might be python2 only, so that's where your 
> problem is. I think the original problem (i.e. the SyntaxError about 
> relative imports) might be avoided by not using the --tests argument. 
> Instead, I think you can do something like (from the qtile root): 
>
> nosetests3 -v -d tests.test_widget 
>
> And it should work. 
>
> Tycho 
>
>   
You put me on the way :). With

nosetests3 -v -d tests.test_widget 

from the qtile root I still got errors:

Failure: ImportError (No module named 'tests') ... ERROR

======================================================================
ERROR: Failure: ImportError (No module named 'tests')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/nose/failure.py", line 39, in 
runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3.4/site-packages/nose/loader.py", line 403, in 
loadTestsFromName
    module = resolve_name(addr.module)
  File "/usr/lib/python3.4/site-packages/nose/util.py", line 311, in 
resolve_name
    module = __import__('.'.join(parts_copy))
ImportError: No module named 'tests'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)

But I get it working with

nosetests3 -v -d test/test_widget.py 

test.test_widget.test_textbox_color_change ... ok

----------------------------------------------------------------------
Ran 1 test in 0.469s

OK



-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to