18

如果我尝试使用带有 python 3.10 的 pytest 执行测试,我收到以下错误 TypeError: required field "lineno" missing from alias Google 说这是已知问题,但我找不到解决它的方法。如果我用 3.9 启动它们,测试就可以开始了

4

1 回答 1

29

这个问题似乎在pytest 版本 6.2.5中得到修复。

请参阅:修复 Python 3.10 上的断言重写

于 2021-10-14T10:36:26.803 回答