Skip to content

Add missing pytest-timeout to pyproject.toml and remove a duplicate pytest-cov entry#4

Open
RuifengHua wants to merge 1 commit into
aws-neuron:mainfrom
RuifengHua:fix-missing-pytest-timeout-dep
Open

Add missing pytest-timeout to pyproject.toml and remove a duplicate pytest-cov entry#4
RuifengHua wants to merge 1 commit into
aws-neuron:mainfrom
RuifengHua:fix-missing-pytest-timeout-dep

Conversation

@RuifengHua

@RuifengHua RuifengHua commented Jul 1, 2026

Copy link
Copy Markdown

Summary

  • test/conftest.py imports pytest_timeout unconditionally(code link), but pytest-timeout is not listed in [project.optional-dependencies].test in pyproject.toml. A fresh make install + make test fails at conftest import with ModuleNotFoundError: No module named 'pytest_timeout'.
  • Adds pytest-timeout to the test dependency list.
  • Also removes a duplicate pytest-cov entry in the same list.

Test plan

  • make install now installs pytest-timeout into the venv.
  • python -c "import pytest_timeout" succeeds.
  • conftest.py gets past the import pytest_timeout line (previously it
    errored here before any tests could be collected).

Note: additional issues currently block a full test run from a fresh public clone (missing test/utils/scripts/ and perf_analysis_private, unregistered pytest plugin, and an nki simulate API mismatch). Filing those separately; this PR addresses only the missing pytest-timeout dependency.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

conftest.py imports pytest_timeout unconditionally, but pytest-timeout
is not listed in the [test] optional-dependencies. A fresh 'make install'
followed by 'make test' then fails at conftest import with
ModuleNotFoundError: No module named 'pytest_timeout'.

Add pytest-timeout to the test dependency list, and remove a duplicate
pytest-cov entry in the same list.
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.

1 participant