Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix trio util removal #444

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions _trio_parallel_workers/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ def _never_halts(ev): # pragma: no cover, worker will be killed
pass


def _raise_ki():
import signal, trio

trio._util.signal_raise(signal.SIGINT)


_lambda = lambda: None # pragma: no cover, never run


Expand Down
4 changes: 2 additions & 2 deletions trio_parallel/_tests/test_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import math
import os
import signal

import trio
import pytest

from _trio_parallel_workers._funcs import (
_lambda,
_return_lambda,
_raise_ki,
_never_halts,
_no_trio,
)
Expand Down Expand Up @@ -97,7 +97,7 @@ async def test_exhaustively_cancel_run_sync(worker, manager):


async def test_ki_does_not_propagate(worker):
(await worker.run_sync(_raise_ki)).unwrap()
(await worker.run_sync(signal.raise_signal, signal.SIGINT)).unwrap()


@pytest.mark.parametrize("job", [_lambda, _return_lambda])
Expand Down
Loading