Skip to content

Replace spawn_web_server with pytest-httpserver in core test suite #5860

@ryanking13

Description

@ryanking13

Description

Pyodide's test suite uses pytest-pyodide's spawn_web_server function to serve files for in-browser tests. This tight coupling between the Pyodide core and pytest-pyodide makes it difficult to evolve the APIs of pytest-pyodide without breaking Pyodide's test suite.

Proposed Solution

We should deprecate the use of spawn_web_server in Pyodide's core test suite and migrate to pytest-httpserver. This approach offers a cleaner, more standard way to serve files during testing.

All remaining instances of spawn_web_server in the Pyodide test suite should be replaced with pytest-httpserver to handle file serving. This will reduce coupling and align Pyodide's testing infrastructure with a more robust and purpose-built tool.

References

Metadata

Metadata

Assignees

Labels

OSSCA2025Good first issue for OSSCA2025 participants

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions