Skip to content

Make UtilsTests.test_filter_params Python 3.13+ compatible #866

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 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
@hroncok hroncok deleted the doc_space branch October 25, 2023 05:48
@JonathanHuot JonathanHuot added this to the 3.3.0 milestone May 13, 2025
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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy