aip/get_token_test.py::TestCaseGetToken::test_start c:\python37\lib\site-packages\_pytest\python.py:200: PytestReturnNotNoneWarning: Expected None, but aip/get_token_test.py::TestCaseGetToken::test_start returned <aip. get_token_test.TestCaseGetToken object at 0x00000250F06F7A08>, which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? f"Expected None, but {pyfuncitem.nodeid} returned {result!r}, which will be an error in a " -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
时间: 2024-03-15 20:41:51 浏览: 258
aip-java-sdk-4.2.0.zip_aip-java_aip-java-sdk_aip-java-sdk 4.2.0_
这是一个关于 pytest 的警告信息,提示开发者在测试用例中使用 `assert` 语句而不是 `return` 语句,以避免在未来版本中产生错误。具体来说,这个警告是在运行 `aip/get_token_test.py` 文件中的 `TestCaseGetToken::test_start` 测试用例时产生的。
阅读全文