Search code examples
unit-testingpycharmnosenosetests

In PyCharm, I have an unresolved reference when calling nose.tools.assert_equals?


When I try to use pycharm with nose, I get red underlines with "unresolved reference" when calling assert_raises. I'm using a virtualenv interpreter, but nose is installed and can be run from ipython. Also, running nosetests on actual tests shows no error.

The code I'm running is:

from nose.tools import *

def test1():
    assert_equals(1,1)

Again, nose runs fine, but the linting mechanism in pycharm thinks this is an error. Any help on configuring pycharm?


Solution

  • I've reproduced the problem and submitted a bug to YouTrack, please star/vote the issue to track the progress.