如果我尝试用 python 3.10中的 pytest执行测试,我会得到以下错误:
pytest
TypeError: required field "lineno" missing from alias
谷歌说这是一个众所周知的问题,但我没有找到解决的办法。 如果我用3.9启动它们,测试就可以正常开始
This issue seems to be fixed in pytest version 6.2.5.
Please see: Fix assertion rewriting on Python 3.10
Just upgrade the pytest PyPI package:
pip install -U pytest