[Numpy-discussion] Non-deterministic test failure in master

Pierre Haessig pierre.haessig at crans.org
Thu Jun 28 02:13:56 EDT 2012

Hi Nathaniel,
Le 27/06/2012 20:22, Nathaniel Smith a écrit :
> According to the Travis-CI build logs, this code produces
> non-deterministic behaviour in master:
You mean non-deterministic across different builds, not across different
executions on the same build, right ?

I just ran a small loop :

N = 10000
N_good = 0
for i in range(N):
    a = np.arange(5)
    a[:3] = a[2:]
    if (a == [2,3,4,3,4]).all():
        N_good += 1
print 'good result : %d/%d' % (N_good, N)

and got 100 % good replication.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120628/f9463168/attachment.sig>

More information about the NumPy-Discussion mailing list