pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate intermittent failures.