py.test does not start (EBUSY: [Resource device])

后端 未结 2 1856
-上瘾入骨i
-上瘾入骨i 2021-01-13 20:41

Just installed py.test with pip install -U pytest with no errors, however we I\'m trying to launch py.test I get error: EBUSY: [Resource devi

相关标签:
2条回答
  • 2021-01-13 20:49

    You created a file test_cases without .py you should rename your test case file like test_cases.py

    0 讨论(0)
  • 2021-01-13 20:51

    Apparently, when py.test is called it starts looking through the files/folders using standard test discovery rules. And some folders have access permissions that limit the access, thus this error occurs.

    to use py.test one must first navigate to the folder with test cases.

    0 讨论(0)
提交回复
热议问题