Skip to content

Commit

Permalink
bugfix trio util removal (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsheridan authored Nov 17, 2024
1 parent ebb9883 commit 782d3c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
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

0 comments on commit 782d3c2

Please sign in to comment.