Skip to content

test_load_refcount from numpy.lib.tests.test_io #6571

Closed

Description

@rherault-pro

The test test_load_refcount from numpy.lib.tests.test_io seems to randomly fail even on the master branch.

#!/usr/bin/env python

from __future__ import print_function

from numpy.lib.tests.test_io import test_load_refcount

n=100
print("Test",end='')
for i in range(n):
    print("\rTest %d/%d"%(i+1,n),end='')
    test_load_refcount()
print("")

Activity

  1. charris commented on Oct 27, 2015

    @charris
    Member

    I've noticed that also. Checking refcounts can be tricky, so my initial thoughts have been that there is a test problem, but I haven't looked closely at it.

  2. njsmith commented on Oct 28, 2015

    @njsmith
    Member

    Odd, I ran it 500 times and it passed every one...

  3. rherault-pro commented on Oct 28, 2015

    @rherault-pro
    Author

    Ubuntu 15.04, Python 3.4.3, master branch it fails nearly each time. And I see Travis check regularly failing on it.

  4. njsmith commented on Oct 28, 2015

    @njsmith
    Member

    Ah, I was checking under 2.7. Under 3.4 it seems to fail reliably the first time I run it in an interactive session (and then works reliably after that).

  5. njsmith commented on Oct 28, 2015

    @njsmith
    Member

    @rherault-insa @charris: since you seem to be able to reproduce this reliably, can you check whether #6576 helps?

  6. added a commit that references this issue on Oct 29, 2015
    0befb0b
  7. added a commit that references this issue on Mar 22, 2016
    b8343c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions