Skip to content

Commit

Permalink
Merge pull request numpy#6137 from cgohlke/patch-1
Browse files Browse the repository at this point in the history
TST: fix OverflowError on win-amd64
  • Loading branch information
charris committed Aug 1, 2015
2 parents 28f74f1 + 58d4115 commit 4ec0b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/random/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_hypergeometric_range(self):
(2**20 - 2, 2**20 - 2, 2**20 - 2), # Check for 32-bit systems
]
is_64bits = sys.maxsize > 2**32
if is_64bits:
if is_64bits and sys.platform != 'win32':
args.append((2**40 - 2, 2**40 - 2, 2**40 - 2)) # Check for 64-bit systems
for arg in args:
assert_(np.random.hypergeometric(*arg) > 0)
Expand Down

0 comments on commit 4ec0b91

Please sign in to comment.