【问题标题】:vscode errors with testsvscode 测试错误
【发布时间】:2019-10-01 16:53:22
【问题描述】:

这周我在 vs code 中运行测试时发现了一个问题。

从命令行运行时测试工作正常,但 VSCode 本身在启动时会产生此错误:

无法读取未定义的属性“$”

有其他人遇到过这个问题吗?
更改 Python 扩展的版本没有帮助

【问题讨论】:

  • 我忘了添加 - 我只在使用 virtualenv 时才观察到这个问题

标签: python-3.x unit-testing visual-studio-code vscode-settings


【解决方案1】:

软件包版本问题。修复了 pip install pytest==5.0.1 不知道这可能与什么有关,但是vs代码中的问题消失了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-11-12
    • 2020-04-20
    • 2019-10-11
    • 1970-01-01
    • 1970-01-01
    • 2018-01-16
    • 2020-02-23
    相关资源
    最近更新 更多