Skip to content

Commit a55bf5a

Browse files
committed
assume monkeypatch.chdir does not work in multiprocess spawn
1 parent 86fc806 commit a55bf5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/func/test_query.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ def test_shutdown_on_sigterm(tmp_dir, request, catalog, setup, expected_return_c
136136
query = f"""\
137137
import os, pathlib, signal, sys, time
138138
139-
pathlib.Path("ready").touch(exist_ok=False)
139+
# assume monkeypatch.chdir has no effect in multiprocess spawn
140+
path = os.path.join("{tmp_dir}", "ready")
141+
pathlib.Path(path).touch(exist_ok=False)
140142
{setup}
141143
time.sleep(10)
142144
"""

0 commit comments

Comments
 (0)