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

Make UtilsTests.test_filter_params Python 3.13+ compatible #866

Merged
merged 1 commit into from Oct 25, 2023

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Oct 24, 2023

Since Python 3.13.0a1, docstrings are automatically dedented. See python/cpython#81283 and https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes

As a result, using a docstring with leading space as a test case breaks the test assumption.

The initial commit which introduced this test a decade ago (6c0c791)
does not specify why testing the spaces is important.

Since Python 3.13.0a1, docstrings are automatically dedented.
See python/cpython#81283
and https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes

As a result, using a docstring with leading space as a test case
breaks the test assumption.

The initial commit which introduced this test a decade ago
(6c0c791)
does not specify why testing the spaces is important.
@auvipy auvipy self-requested a review October 24, 2023 14:41
Copy link
Contributor

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are having lint issues

@hroncok
Copy link
Contributor Author

hroncok commented Oct 24, 2023

Run ruff --format=github .
error: unexpected argument '--format' found

@auvipy auvipy merged commit fe020db into oauthlib:master Oct 25, 2023
8 of 9 checks passed
@hroncok hroncok deleted the doc_space branch October 25, 2023 05:48
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.

None yet

2 participants