Skip to content

Fix test failure in Python 3.14a #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import pytest
from _pytest.main import ExitCode # type: ignore[attr-defined]
from pytest_split.algorithms import Algorithms

pytest_plugins = ["pytester"]

Expand Down Expand Up @@ -353,10 +354,11 @@ def test_returns_nonzero_when_invalid_algorithm_name(self, example_suite, capsys
assert result.ret == ExitCode.USAGE_ERROR

outerr = capsys.readouterr()
assert (
"argument --splitting-algorithm: invalid choice: 'NON_EXISTENT' "
"(choose from 'duration_based_chunks', 'least_duration')"
) in outerr.err
for err_content in [
"argument --splitting-algorithm: invalid choice: 'NON_EXISTENT' ",
*Algorithms.names(),
]:
assert err_content in outerr.err


class TestHasExpectedOutput:
Expand Down