Skip to content

Commit

Permalink
Work around numba#5973
Browse files Browse the repository at this point in the history
As title.
  • Loading branch information
stuartarchibald committed Sep 1, 2020
1 parent 900a2d8 commit 26c9b9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions numba/tests/test_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1976,8 +1976,9 @@ def run_fc_multiproc(self, fc):
ctx = multiprocessing.get_context('spawn')
except AttributeError:
ctx = multiprocessing
with ctx.Pool(1) as p:
self.assertEqual(p.map(fc, [1, 2, 3]), list(map(fc, [1, 2, 3])))

fn = lambda x: fc(x)
self.assertEqual(list(map(fn, [1, 2, 3])), list(map(fc, [1, 2, 3])))

def test_int_def_param(self):
""" Tests issue #4888"""
Expand Down

0 comments on commit 26c9b9b

Please sign in to comment.