-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Summary of Changes - fixes a crash on startup as the multiprocessing manager causes a new process to spawn during the bootstrap phase - this error only occurred during execution of the main.py with a new interpreter --------- Co-authored-by: megalinter-bot <[email protected]> Co-authored-by: Lars Reimann <[email protected]>
- Loading branch information
1 parent
035f64c
commit 01df889
Showing
2 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import subprocess | ||
import typing | ||
from pathlib import Path | ||
from typing import IO | ||
|
||
_project_root: Path = Path(__file__).parent / ".." / ".." / ".." | ||
|
||
|
||
def test_should_runner_start_successfully() -> None: | ||
process = subprocess.Popen(["poetry", "run", "safe-ds-runner"], cwd=_project_root, stderr=subprocess.PIPE) | ||
while process.poll() is None: | ||
process_line = str(typing.cast(IO[bytes], process.stderr).readline(), "utf-8").strip() | ||
# Wait for first line of log | ||
if process_line.startswith("INFO:root:Starting Safe-DS Runner"): | ||
process.kill() | ||
return | ||
assert process.poll() == 0 |