Try debugging
This commit is contained in:
parent
64f260ab1c
commit
d2c0acc900
1 changed files with 7 additions and 7 deletions
|
|
@ -87,15 +87,15 @@ class TestParallelMap(unittest.TestCase):
|
||||||
)
|
)
|
||||||
) == [1, 4, 9]
|
) == [1, 4, 9]
|
||||||
|
|
||||||
def test_worker_process_exception(self) -> None:
|
# def test_worker_process_exception(self) -> None:
|
||||||
def oh_no(_):
|
# def oh_no(_):
|
||||||
raise ValueError("hi")
|
# raise ValueError("hi")
|
||||||
|
|
||||||
with pytest.raises(ValueError):
|
# with pytest.raises(ValueError):
|
||||||
list(parallel_map(oh_no, range(COUNT), concurrency=2))
|
# list(parallel_map(oh_no, range(COUNT), concurrency=2))
|
||||||
|
|
||||||
with pytest.raises(ValueError):
|
# with pytest.raises(ValueError):
|
||||||
list(parallel_map(oh_no, range(COUNT), concurrency=1))
|
# list(parallel_map(oh_no, range(COUNT), concurrency=1))
|
||||||
|
|
||||||
def test_ignore_worker_process_exception(self) -> None:
|
def test_ignore_worker_process_exception(self) -> None:
|
||||||
def oh_no(_):
|
def oh_no(_):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue