From b8aedd0e69e862a74cba896bb0dbb1d2748c4edf Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Wed, 3 Sep 2014 20:20:03 +0200 Subject: [PATCH] TST: join fft threads before getting values avoids timeouts on slow machines --- numpy/fft/tests/test_fftpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpy/fft/tests/test_fftpack.py b/numpy/fft/tests/test_fftpack.py index ac892c83b8d6..45b5ac784ee9 100644 --- a/numpy/fft/tests/test_fftpack.py +++ b/numpy/fft/tests/test_fftpack.py @@ -48,11 +48,11 @@ def worker(args, q): for i in range(self.threads)] [x.start() for x in t] + [x.join() for x in t] # Make sure all threads returned the correct value for i in range(self.threads): assert_array_equal(q.get(timeout=5), expected, 'Function returned wrong value in multithreaded context') - [x.join() for x in t] def test_fft(self): a = np.ones(self.input_shape) * 1+0j