scipy / scipy_doctest

Floating-point aware doctesting
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

`pytest-xdist` breaks warning filters #116

Closed ev-br closed 6 months ago

ev-br commented 6 months ago

When run with pytest -n 4, warnings may or may not get filtered properly. Specifically, I see it in scipy.sparse.linalg.norm where there is a dreaded UserWarning from lobpcg. Seems to get filtered out when tests are single-threaded, but appears for multithreded runs. This is probably an upstream issue: https://github.com/pytest-dev/pytest-xdist/issues/758

ev-br commented 6 months ago

Also need to check if pytest -n 4 distributes 1/4 of tests per worker or gives all tests to all workers.

ev-br commented 6 months ago

The warning is no problem anymore (?), pytest-xdist seems to behave (at least the runtime drops for -n 4).