Problem with nosetests in PyCharm EAP


I downloaded the EAP of PyCharm as it listed to have initial support for nosetests. Since I am completely new to any of the JetBrains products, it is possible that I'm doing something wrong, so please say so if that is the case.

I created an initial project to test PyCharm a bit, and specifically the nosetests support. I am preparing some dummy tests that explains to our developers the call sequence of tests and the setUp and tearDown functions on different levels. The attached files are my starting point, but it already goes wrong when I run them within PyCharm. From the command line, they work.

Within PyCharm:

/opt/qbase3/bin/python /usr/local/share/pycharm-98.404/helpers/pycharm/ /home/rdesmet/Projects/python/testrunner/tests/

Testing started at 12:11 PM ...


Traceback (most recent call last):

  File "/opt/qbase3/lib/python2.6/", line 279, in run


  File "/usr/local/share/pycharm-98.404/helpers/pycharm/nose_helper/", line 17, in runTest

    raise self.exc_class(self.exc_val)

ImportError: No module named TestModuleTop


Process finished with exit code 0

From the command line:
root@ringo-desktop:/opt/qbase3/var/tests# /opt/qbase3/bin/nosetests -v nose_demo
nose_demo.test ... ok
nose_demo.TestModuleTop.testTopLevelTest ... ok

Ran 2 tests in 0.001s

Can someone elaborate on this?


Please sign in to leave a comment.