Avoid transient working directory in XCL EOF tests

This commit is contained in:
merzleckeier
2026-12-02 16:43:09 +01:00
parent 3c106eb2ff
commit 7bc09ed095

View File

@ -117,9 +117,9 @@ class OutputEOF(unittest.TestCase):
"os.close(1)\n"
"os.close(2)\n" + after_close)
run = xc.Run("synthetic")
with tempfile.TemporaryDirectory() as tmp:
hung = xc.run_title([sys.executable, "-I", "-c", script], os.environ, tmp, run,
["probe"], 1, None, Sink(), [])
# The child only writes to pipes, so it can inherit the test runner's working directory.
hung = xc.run_title([sys.executable, "-I", "-c", script], os.environ, None, run,
["probe"], 1, None, Sink(), [])
return hung, run
def test_live_title_after_eof_returns_hung_check_for_restart(self):