【问题标题】:Why does py.test give this error?为什么 py.test 会给出这个错误?
【发布时间】:2014-10-13 10:21:18
【问题描述】:

我已经安装了所有必需的东西,包括 pytest ,但我仍然收到“EBUSY: [Resource Device]....”错误,如图所示。这是为什么? 我也指定了路径,顺便说一下,它没有任何特殊的访问权限,所以没问题。

【问题讨论】:

    标签: python mozilla pytest


    【解决方案1】:

    1) EBUSY 表示“资源繁忙的设备”,但the docs say it isn't actually used in Windows。在 Windows 中,error code 16 actually means "cannot delete current directory"。您可以查看实际的NTSTATUS 和文件操作日志,这可能会通过 Process Monitor 提供更好的提示。

    2) 考虑到--driver=firefox,路径看起来很可疑。你确实有安装了 FirefoxDriver 的 Selenium 并且有 set up pytest to use it,对吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-31
      • 2013-11-14
      • 1970-01-01
      • 1970-01-01
      • 2020-12-23
      相关资源
      最近更新 更多