An error occurred while launching the Nose

I recently reinstalled noseto run tests on my code.

https://nose.readthedocs.org/en/latest/

I used

sudo pip install nose

and went to my project folder. Answer

-bash: nosetests: command not found.

So, I uninstalled again and tried installing noseusing MacPorts:

sudo port install py27-nose

In my project folder, I run

nosetests-2.7 filename.py

and I get the following error:

ERROR: Failure: ImportError (No module named nose_parameterized)

What is the problem?

EDIT: additional information. nose. I get it Successfully installed nose-1.3.6.

+4
source share
2 answers

So, the way I worked was to load nose-parameterized

sudo pip install nose-parameterized

Previously noseworked in the project catalog, but testing would always be very quick. For instance,

Ran 0 tests in 0.002s

, . nose-parameterized ?

+11

python MacPorts, , Homebrew python, , , OS X. , , .

0

All Articles