Skip to content
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

[ci] resolve warning in tests #6154

Merged
merged 1 commit into from
Oct 26, 2023
Merged

[ci] resolve warning in tests #6154

merged 1 commit into from
Oct 26, 2023

Conversation

jameslamb
Copy link
Collaborator

@jameslamb jameslamb commented Oct 26, 2023

Resolves the following warning raised by pytest in the project's Python unit tests.

/Users/runner/work/LightGBM/LightGBM/tests/python_package_test/test_engine.py:856: DeprecationWarning: invalid escape sequence \(
    with pytest.raises(lgb.basic.LightGBMError, match="Positions size \(3006\) doesn't match data size"):

Also removes some trailing whitespace in those same tests.

Notes for Reviewers

That warning could be seen in, for example, the macOS regular CI job on GitHub Actions (example build on master).

@jameslamb jameslamb merged commit fcf76bc into master Oct 26, 2023
@jameslamb jameslamb deleted the test-warning branch October 26, 2023 17:58
Ten0 pushed a commit to Ten0/LightGBM that referenced this pull request Jan 12, 2024
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants