Skip to content

BUG: lazy_xp_function is incompatible with pytest-run-parallel #307

Open
@crusaderky

Description

@crusaderky

In both array-api-extra and scipy, the xp fixture depends on monkeypatch, as required by lazy_xp_function.
This in turn causes pytest-run-parallel to automatically disable parallel testing for all tests that use xp, for all backends, including when SCIPY_ARRAY_API is not set.

Desired behaviour

Currently, there is actually no need to disable parallelisation, due to a missing feature: Quansight-Labs/pytest-run-parallel#14
Assuming that at some point soon the linked issue is resolved, thread parallelization should exclusively be disabled for those backends that actually require patching, which means JAX and Dask.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions