Python NoTests运行时AnswerTesting未请求插件时的警告
我收到以下警告:Python NoTests运行时AnswerTesting未请求插件时的警告,python,nose,nosetests,Python,Nose,Nosetests,我收到以下警告: /usr/local/lib/python3.4/dist-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin answer-testing = yt.utilities.answer_testing.framework:AnswerTesting: '%' must be followed by '%' or '(', found: '%s_%s' RuntimeWarni
/usr/local/lib/python3.4/dist-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin answer-testing = yt.utilities.answer_testing.framework:AnswerTesting: '%' must be followed by '%' or '(', found: '%s_%s'
RuntimeWarning)
在docker容器中运行nosetests时,尽管没有请求任何插件。我在我的系统中找不到任何关于
AnswerTesting
或yt
的参考。如何修复或抑制该错误?这不是错误,只是警告,提示您将无法使用带nose的答案测试插件。如果它困扰您,请使用pip将其移除,即:
pip uninstall answer-testing
或者通过查看Lib/site-packages/easy-install.pth
中的/answer-testing-0.0.1-py3.4.egg
或类似内容手动删除它
如果你勇敢/迷路,添加导入pdb;pdb.将_trace()
设置为/usr/local/lib/python3.4/dist packages/nose/plugins/manager.py:395
,看看是什么让你悲伤。我遇到了这个错误
我不得不
pip安装--升级cython
然后
pip安装--升级yt
那之后错误就消失了。我不能简单地安装yt,因为它需要一个最新的cython