examples/pytest/test_stdout_stderr.py. import sys def test_hello(): print("hello testing") print("stderr during testing", file=sys.stderr) assert True.
確定! 回上一頁