Skip to content

move pytest options from pytest config to tox#156

Merged
oz123 merged 1 commit intosarugaku:masterfrom
eli-schwartz:pytest
Jan 28, 2024
Merged

move pytest options from pytest config to tox#156
oz123 merged 1 commit intosarugaku:masterfrom
eli-schwartz:pytest

Conversation

@eli-schwartz
Copy link
Copy Markdown
Contributor

The --cov option was useless, since tox already uses coverage run instead. While we are at it, we can also drop pytest-cov from the test dependencies. One less wheel for tox to download and install.

The timeout option is moved to tox.

Both of these options add additional dependencies for running pytest outside of tox, which may sometimes be desired if you really know what you are doing. There is no way to disable them other than by patching out the addopts configuration. Best to specify this only in tox, which is designed to set up the appropriate environments already.

Bug: https://bugs.gentoo.org/922192

The --cov option was useless, since tox already uses `coverage run`
instead. While we are at it, we can also drop pytest-cov from the test
dependencies. One less wheel for tox to download and install.

The timeout option is moved to tox.

Both of these options add additional dependencies for running `pytest`
outside of tox, which may sometimes be desired if you really know what
you are doing. There is no way to disable them other than by patching
out the addopts configuration. Best to specify this only in tox, which
is designed to set up the appropriate environments already.

Bug: https://bugs.gentoo.org/922192
@oz123 oz123 merged commit ce2e6a4 into sarugaku:master Jan 28, 2024
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