vscode 测试错误

vscode errors with tests

这周我在 vs 代码中 运行ning 测试时注意到一个问题。

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

Cannot read property '$' of undefined

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

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