8000 Merge pull request #5035 from juliantaylor/fft-test · numpy/numpy@6968c25 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6968c25

Browse files
committed
Merge pull request #5035 from juliantaylor/fft-test
TST: join fft threads before getting values
2 parents 0f0575c + b8aedd0 commit 6968c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/fft/tests/test_fftpack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def worker(args, q):
4848
for i in range(self.threads)]
4949
[x.start() for x in t]
5050

51+
[x.join() for x in t]
5152
# Make sure all threads returned the correct value
5253
for i in range(self.threads):
5354
assert_array_equal(q.get(timeout=5), expected,
5455
'Function returned wrong value in multithreaded context')
55-
[x.join() for x in t]
5656

5757
def test_fft(self):
5858
a = np.ones(self.input_shape) * 1+0j

0 commit comments

Comments
 (0)
0