<p dir="auto">Error on windows. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a> Probably need to disable test on windows  until randint gets fixed for bigger integers (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121833798" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/6824" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/6824/hovercard" href="https://github.com/numpy/numpy/pull/6824">#6824</a>).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: test_mem_overlap.test_diophantine_fuzz
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\Py\lib\site-packages\nose\case.py&quot;, line 197, in runTest
    self.test(*self.arg)
  File &quot;C:\Py\lib\site-packages\numpy\core\tests\test_mem_overlap.py&quot;, line 123, in test_diophantine_fuzz
    b = rng.randint(-1, b_ub+2)
  File &quot;mtrand.pyx&quot;, line 951, in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10704)
OverflowError: Python int too large to convert to C long
"><pre class="notranslate"><code class="notranslate">======================================================================
ERROR: test_mem_overlap.test_diophantine_fuzz
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Py\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\Py\lib\site-packages\numpy\core\tests\test_mem_overlap.py", line 123, in test_diophantine_fuzz
    b = rng.randint(-1, b_ub+2)
  File "mtrand.pyx", line 951, in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10704)
OverflowError: Python int too large to convert to C long

</code></pre></div>
<p dir="auto">clearly using platform ints internally. But I think this should upcast in the case of overflow?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: np.random.randint(np.iinfo(np.int32).min,np.iinfo(np.int32).max,10)
Out[21]:
array([ -397752718, -1983241147,  -920985850, -2131569981,  -769723972,
        -499680303,  1808795318,  -636996393, -1437760815,  1771191619])

In [22]: np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10)
---------------------------------------------------------------------------
OverflowError                             Traceback (most recent call last)
&lt;ipython-input-22-3cceca91fd37&gt; in &lt;module&gt;()
----&gt; 1 np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10)

mtrand.pyx in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10694)()

OverflowError: Python int too large to convert to C long

In [23]: np.__version__
Out[23]: '1.10.1'"><pre class="notranslate"><code class="notranslate">In [21]: np.random.randint(np.iinfo(np.int32).min,np.iinfo(np.int32).max,10)
Out[21]:
array([ -397752718, -1983241147,  -920985850, -2131569981,  -769723972,
        -499680303,  1808795318,  -636996393, -1437760815,  1771191619])

In [22]: np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10)
---------------------------------------------------------------------------
OverflowError                             Traceback (most recent call last)
&lt;ipython-input-22-3cceca91fd37&gt; in &lt;module&gt;()
----&gt; 1 np.random.randint(np.iinfo(np.int64).min,np.iinfo(np.int64).max,10)

mtrand.pyx in mtrand.RandomState.randint (numpy\random\mtrand\mtrand.c:10694)()

OverflowError: Python int too large to convert to C long

In [23]: np.__version__
Out[23]: '1.10.1'
</code></pre></div>