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