============================== warnings summary ===============================
..\env\lib\site-packages\_pytest\config\__init__.py:1233
E:\python code\pytest_demo\env\lib\site-packages\_pytest\config\__init__.py:1233: PytestConfigWarning: Unknown config option: python_function
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 3 passed, 1 warning in 0.02s =========================
Process finished with exit code 0
这个不影响的
老师 这个怎么配置才能消除呢 看着好碍眼呢
在pytest.ini 文件加上这个参数
[pytest]
addopts = -p no:warnings
可以啦 谢谢老师