How to Run Pandas' Test Suite

Running Pandas test suite

First place I looked to start with was Pandas’ official docs:

If only it was that easy 😊

The List of Steps

I own a Mac, but steps are probably pretty similar for the other major OSes.

Here’s the list of steps I took:

pyenv install 3.5.6

pyenv virtualenv pandasdev && pyenv activate pandasdev

pyenv version 3.5.6

pip install cython

pip install -e ".[test]"

pytest ./pandas/

So how did it turn out?

Ultimately, on my iMac it took ~1400 seconds (24 minutes) to run the test suite:

=============== 15 failed, 52313 passed, 3609 skipped, 826 xfailed, 15 xpassed, 3 warnings in 1428.99 seconds ================

Not perfect results from the head of master branch…suspicious!

Many (all?) of the test failures seemed to be due to logged warning messages of the type:

AssertionError: Did not see expected warning of class 'FutureWarning'.

What to do next?

I’ll do some more digging later to identify what might be causing them to be categorized as failures, but this looks like a good place to start:

· testing, programming