TST: stats: make tests pass with python -OO