(hq_env: HqEnv)
| 77 | |
| 78 | |
| 79 | def test_empty_stdio(hq_env: HqEnv): |
| 80 | (job, client) = prepare_job_client(hq_env) |
| 81 | |
| 82 | def foo(): |
| 83 | print("Hello") |
| 84 | print("Hello", file=sys.stderr) |
| 85 | |
| 86 | job.function( |
| 87 | foo, |
| 88 | stdout=None, |
| 89 | stderr=None, |
| 90 | ) |
| 91 | submitted_job = client.submit(job) |
| 92 | wait_for_job_state(hq_env, submitted_job.id, "FINISHED") |
| 93 | assert not os.path.isfile("0.stdout") |
| 94 | assert not os.path.isfile("0.stderr") |
| 95 | |
| 96 | |
| 97 | def test_stdio_rm_if_finished(hq_env: HqEnv): |
nothing calls this directly
no test coverage detected