Skip to content

Add missing pytest-asyncio to the test extra - #302

Open
AryantJadhav wants to merge 1 commit into
openai:mainfrom
AryantJadhav:fix/missing-pytest-asyncio
Open

Add missing pytest-asyncio to the test extra#302
AryantJadhav wants to merge 1 commit into
openai:mainfrom
AryantJadhav:fix/missing-pytest-asyncio

Conversation

@AryantJadhav

Copy link
Copy Markdown

tests/gpt_oss/tools/simple_browser/test_backend.py marks four tests with @pytest.mark.asyncio, but pytest-asyncio was not in the test extra. Without the plugin pytest does not run async test functions -- it reports them as failures with "async def functions are not natively supported" and warns that asyncio is an unknown mark.

So pip install gpt-oss[test] && pytest gave 4 failures out of the box, and the coverage protecting the You.com and Exa backends was never actually executing.

With the plugin installed those four tests run and pass (7 passed, up from 3 passed / 4 failed).

tests/gpt_oss/tools/simple_browser/test_backend.py marks four tests with
`@pytest.mark.asyncio`, but pytest-asyncio was not in the `test` extra. Without
the plugin pytest does not run async test functions -- it reports them as
failures with "async def functions are not natively supported" and warns that
`asyncio` is an unknown mark.

So `pip install gpt-oss[test] && pytest` gave 4 failures out of the box, and the
coverage protecting the You.com and Exa backends was never actually executing.

With the plugin installed those four tests run and pass (7 passed, up from
3 passed / 4 failed).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 24, 2026 17:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds pytest-asyncio to the test extra so async tests run correctly.

Changes:

  • Adds pytest-asyncio>=0.24.0 to test dependencies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants