-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
[3.13] gh-128770: raise warnings as errors in test suite - except for test_s… #131802
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 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
18dd42a
gh-128770: raise warnings as errors in test suite - except for test_s…
graingert 301bdf1
add ExtraAssertions to test_support
graingert 07127e7
fix unclosed loop in test_asyncio.test_tasks' test_proper_refcounts
graingert 9217ba0
fix ResourceWarning in test_ucn.py
graingert 2e2f6cf
Update Lib/test/support/__init__.py
graingert a583aeb
Merge branch '3.13' into backport-8a00c9a-3.13
graingert 0303a1e
Merge branch '3.13' into backport-8a00c9a-3.13
graingert 81a441f
Merge branch '3.13' into backport-8a00c9a-3.13
graingert 1c82dc0
Merge branch '3.13' into backport-8a00c9a-3.13
graingert 3c72270
Merge branch '3.13' into backport-8a00c9a-3.13
graingert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# These are shared with test_tokenize and other test modules. | ||
# | ||
# Note: since several test cases filter out floats by looking for "e" and ".", | ||
# don't add hexadecimal literals that contain "e" or "E". | ||
VALID_UNDERSCORE_LITERALS = [ | ||
'0_0_0', | ||
'4_2', | ||
'1_0000_0000', | ||
'0b1001_0100', | ||
'0xffff_ffff', | ||
'0o5_7_7', | ||
'1_00_00.5', | ||
'1_00_00.5e5', | ||
'1_00_00e5_1', | ||
'1e1_0', | ||
'.1_4', | ||
'.1_4e1', | ||
'0b_0', | ||
'0x_f', | ||
'0o_5', | ||
'1_00_00j', | ||
'1_00_00.5j', | ||
'1_00_00e5_1j', | ||
'.1_4j', | ||
'(1_2.5+3_3j)', | ||
'(.5_6j)', | ||
] | ||
INVALID_UNDERSCORE_LITERALS = [ | ||
# Trailing underscores: | ||
'0_', | ||
'42_', | ||
'1.4j_', | ||
'0x_', | ||
'0b1_', | ||
'0xf_', | ||
'0o5_', | ||
'0 if 1_Else 1', | ||
# Underscores in the base selector: | ||
'0_b0', | ||
'0_xf', | ||
'0_o5', | ||
# Old-style octal, still disallowed: | ||
'0_7', | ||
'09_99', | ||
# Multiple consecutive underscores: | ||
'4_______2', | ||
'0.1__4', | ||
'0.1__4j', | ||
'0b1001__0100', | ||
'0xffff__ffff', | ||
'0x___', | ||
'0o5__77', | ||
'1e1__0', | ||
'1e1__0j', | ||
# Underscore right before a dot: | ||
'1_.4', | ||
'1_.4j', | ||
# Underscore right after a dot: | ||
'1._4', | ||
'1._4j', | ||
'._5', | ||
'._5j', | ||
# Underscore right after a sign: | ||
'1.0e+_1', | ||
'1.0e+_1j', | ||
# Underscore right before j: | ||
'1.4_j', | ||
'1.4e5_j', | ||
# Underscore right before e: | ||
'1_e1', | ||
'1.4_e1', | ||
'1.4_e1j', | ||
# Underscore right after e: | ||
'1e_1', | ||
'1.4e_1', | ||
'1.4e_1j', | ||
# Complex cases with parens: | ||
'(1+1.5_j_)', | ||
'(1+1.5_j)', | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.