We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DeprecationWarning
Describe the bug
When using a @tag with Python 3.13 and warnings enabled:
@tag
$ pytest -Wall --no-header test_py313.py ============================= test session starts ============================== collected 1 item test_py313.py s [100%] =============================== warnings summary =============================== .tox/py313-pyqt67/lib/python3.13/site-packages/gherkin/gherkin_line.py:79 /home/florian/proj/qutebrowser/git/.tox/py313-pyqt67/lib/python3.13/site-packages/gherkin/gherkin_line.py:79: DeprecationWarning: 'maxsplit' is passed as positional argument uncommented_line = re.split(r"\s#", self._trimmed_line_text.strip(), 2)[0] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 skipped, 1 warning in 0.07s =========================
To Reproduce
py313.feature:
py313.feature
Feature: nothing @skip Scenario: nothing
test_py313.py:
test_py313.py
from pytest_bdd import scenarios scenarios("py313.feature")
Expected behavior No warning, as pytest-bdd should not have an upper gherkin-official bound, or at least have it on a more modern version.
Additional context This was already fixed here:
And that was released as part of v30.0.0. However, pytest-bdd still pins an old version without full Python 3.13 compatibility:
pytest-bdd/pyproject.toml
Line 44 in 9bb4967
Version
The text was updated successfully, but these errors were encountered:
gherkin-official
Fixing this in #753, thank you for reporting it!
Sorry, something went wrong.
Thanks for the quick fix! FWIW, here is an appropriate workaround for pytest's filterwarnings:
filterwarnings
ignore:'maxsplit' is passed as positional argument:DeprecationWarning:gherkin.gherkin_line
py313: Ignore maxsplit deprecation warning
48d3c7d
cucumber/gherkin@2f48300 pytest-dev/pytest-bdd#752 pytest-dev/pytest-bdd#753 See #8205
Successfully merging a pull request may close this issue.
Describe the bug
When using a
@tag
with Python 3.13 and warnings enabled:To Reproduce
py313.feature
:test_py313.py
:Expected behavior
No warning, as pytest-bdd should not have an upper gherkin-official bound, or at least have it on a more modern version.
Additional context
This was already fixed here:
And that was released as part of v30.0.0. However, pytest-bdd still pins an old version without full Python 3.13 compatibility:
pytest-bdd/pyproject.toml
Line 44 in 9bb4967
Version
The text was updated successfully, but these errors were encountered: