【问题标题】:In PyCharm, I have an unresolved reference when calling nose.tools.assert_equals?在 PyCharm 中,调用nose.tools.assert_equals 时我有一个未解决的引用?
【发布时间】:2012-09-09 06:14:51
【问题描述】:

当我尝试将 pycharm 与鼻子一起使用时,在调用 assert_raises 时,我得到带有“未解析引用”的红色下划线。我正在使用 virtualenv 解释器,但是安装了nose并且可以从ipython运行。此外,在实际测试中运行鼻子测试也没有错误。

我运行的代码是:

from nose.tools import *

def test1():
    assert_equals(1,1)

再次,nose 运行良好,但 pycharm 中的 linting 机制认为这是一个错误。有关于配置pycharm的帮助吗?

【问题讨论】:

    标签: unit-testing pycharm nose nosetests


    【解决方案1】:

    我已将问题和submitted a bug 复制到 YouTrack,请给问题加注星标/投票以跟踪进度。

    【讨论】:

      【解决方案2】:

      问题已在 PyCharm 3.0 中修复

      【讨论】:

        猜你喜欢
        • 2016-10-12
        • 2019-01-09
        • 2022-07-05
        • 1970-01-01
        • 1970-01-01
        • 2021-10-02
        • 2019-01-29
        • 2012-07-28
        相关资源
        最近更新 更多