Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #56 from esc/fix_failing_tests_32bit
Browse files Browse the repository at this point in the history
force larger output dtype to avoid overflow on 32 bit
  • Loading branch information
FrancescAlted committed Sep 25, 2014
2 parents 18b4248 + 23fad32 commit f2c1eb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bcolz/tests/test_ctable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,8 @@ def test02(self):
l, s = 0, 0.
for block in bcolz.iterblocks(t, blen, blen - 1):
l += len(block)
s += block['f1'].sum()
# f8 is to small to hold the sum on 32 bit
s += block['f1'].sum(dtype='f16')
self.assertEqual(l, (N - (blen - 1)))
self.assertEqual(s, (np.arange(blen - 1, N, dtype='f8') * 2).sum())

Expand Down

0 comments on commit f2c1eb8

Please sign in to comment.