Permalink
Browse files

Merge pull request #73 from cgohlke/patch-1

TST: fix thousands of deprecation warnings during tests with numpy 1.8 ...
  • Loading branch information...
2 parents 841f651 + 1ed3ecf commit ae56ef1a4b8d6217e939af665ed03a634bd1d4f0 @kwgoodman committed Sep 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bottleneck/tests/partsort_test.py
@@ -41,7 +41,7 @@ def unit_maker(func, func0):
n = arr.size
else:
n = arr.shape[axis]
- n = max(n / 2, 1)
+ n = max(n // 2, 1)
with np.errstate(invalid='ignore'):
actual = func(arr.copy(), n, axis=axis)
actual[:n] = np.sort(actual[:n], axis=axis)

0 comments on commit ae56ef1

Please sign in to comment.