Skip to content

Fix coverage of pandas on Travis #272

@lrq3000

Description

@lrq3000

Travis has an issue with pandas: it does not want to run the tests. They are skipped because of a missing library: numpy. Numpy should be installed and work (Travis tells us that it is installed per pandas requirements), but it weirdly cannot be imported:

======================================================================
ERROR: Test pandas bar object instance as argument deprecation
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/tqdm/tqdm/.tox/py27/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/tqdm/tqdm/tqdm/tests/tests_pandas.py", line 111, in test_pandas_deprecation
    from numpy.random import randint
ImportError: No module named numpy.random

I tested and pandas seems to be imported fine. The only issue is numpy.random.randint.

So either we workaround by defining our own replacement function, either we really fix this issue (which is better because other submodules will need it such as #248) but I have no idea how.

This should be fixed because we should have a branch coverage of 100% overall, but Travis reaches only 90% because the pandas tests are skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions