版本是PyCharm 2.7,nosetests-script.py版本1.2.1和Python 2.6.8,通过Python(x,y)-2.7.3.0。和Win7。
我可以从命令行中测试一下。但是当我构建一个nosetests PyCharm配置,并尝试运行或调试它时,我得到了这个:
C:\Python27\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2.7\helpers\pycharm\noserunner.py" nosetests
Testing started at 4:59 PM ...
Error
Traceback (most recent call last):
File "C:\Python27\lib\unittest\case.py", line 327, in run
testMethod()
File "C:\Python27\lib\site-packages\nose\loader.py", line 379, in loadTestsFromName
module = resolve_name(addr.module)
File "C:\Python27\lib\site-packages\nose\util.py", line 321, in resolve_name
module = __import__('.'.join(parts_copy))
ImportError: No module named nosetests
哦,几个版本之前,它简单地工作,然后停止工作。任何人都知道如何让它工作?
答案 0 :(得分:3)
我在PyCharm的问题跟踪器中提交了错误报告PY-8840。请在问题跟踪器中投票以获取通知。
答案 1 :(得分:0)
我得到了同样的错误:
/Users/kwu/my_projects/virtualenv-root/env_py/bin/python2.7“/ Applications / PyCharm CE.app/Contents/helpers/pycharm/_jb_nosetest_runner.py”--path / Users / kwu / my_projects /前线/账户 - nosetests --cover-branches --with-coverage --cover-erase --cover-package =账户
测试于13:16开始...... 使用参数启动Nosetest / Applications / PyCharm CE.app/Contents/helpers/pycharm/_jb_nosetest_runner.py / Users / kwu / my_projects / frontline / Account nosetests --cover-branches --with-coverage --cover-erase --cover -package =帐户
Error
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 327, in run
testMethod()
File "/Users/kwu/my_projects/virtualenv-root/env_py/lib/python2.7/site-packages/nose/loader.py", line 407, in loadTestsFromName
module = resolve_name(addr.module)
File "/Users/kwu/my_projects/virtualenv-root/env_py/lib/python2.7/site-packages/nose/util.py", line 312, in resolve_name
module = __import__('.'.join(parts_copy))
ImportError: No module named nosetests
这是因为我的跑步者配置
将nosetests
视为一种选择。
我检查你是否也认为nosetests
。