pytestrunner의 PluginManager를 예기치 않은 키워드 인수가 단지 pytest, tmp.py 배우 :이 스크립트를 실행 Pycharm를 사용pycharm 내가 아주 간단한 테스트 스크립트를
def square(x):
return x*x
def test_square():
assert square(4) == 16
을, 나는 pytest이되도록 설정 내 프로젝트를 구성한 내 기본 테스트 러너로 사용됩니다. 내가 PyCharm 3.0 프로페셔널 에디션을 실행하고
/Users/mingxiao/webdav_2.7.5/bin/python /Applications/PyCharm.app/helpers/pycharm/pytestrunner.py -p pytest_teamcity /Users/mingxiao/dev/juggernaut/src/integrations/webDAV/demo/tmp.py "-k test_square"
Testing started at 4:41 PM ...
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/pycharm/pytestrunner.py", line 51, in <module>
main()
File "/Applications/PyCharm.app/helpers/pycharm/pytestrunner.py", line 20, in main
_pluginmanager = PluginManager(load=True)
TypeError: __init__() got an unexpected keyword argument 'load'
Process finished with exit code 1
, pytest 2.4.2 및 파이썬 2.7.5 : 나는 위의 코드를 실행하면 나는 다음과 같은 오류가 발생합니다. PyCharm 자체가 문제를 일으키는 것 같습니다.
작동합니다. –