-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix tests for Python 3.11 #7167
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 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2d60142
Ignore deprecated-module in access_attr_before_def_false_positive
AdamWill c02b2e3
Split asyncio.coroutine tests and set max_pyver 3.10 for them
AdamWill 5d63025
Set max_pyver 3.10 for some deprecations removed in 3.11
AdamWill de901b3
Change syntax_error test for consistent output
AdamWill 216f17c
Update tests/functional/i/iterable_context_asyncio.py
DanielNoord 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
2 changes: 1 addition & 1 deletion
2
tests/functional/a/access/access_attr_before_def_false_positive.py
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[testoptions] | ||
min_pyver=3.9 | ||
max_pyver=3.10 |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[testoptions] | ||
min_pyver=3.9 | ||
max_pyver=3.10 |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ py-version=3.8 | |
|
||
[testoptions] | ||
min_pyver=3.9 | ||
max_pyver=3.10 |
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,43 @@ | ||
""" | ||
Checks that we don't erroneously emit not-an-iterable errors for | ||
coroutines built with asyncio.coroutine. | ||
|
||
These decorators were deprecated in 3.8 and removed in 3.10. | ||
DanielNoord marked this conversation as resolved.
Show resolved
Hide resolved
|
||
""" | ||
# pylint: disable=missing-docstring,too-few-public-methods,unused-argument,bad-mcs-method-argument | ||
# pylint: disable=wrong-import-position | ||
import asyncio | ||
|
||
|
||
@asyncio.coroutine | ||
def coroutine_function_return_none(): | ||
return | ||
|
||
|
||
@asyncio.coroutine | ||
def coroutine_function_return_object(): | ||
return 12 | ||
|
||
|
||
@asyncio.coroutine | ||
def coroutine_function_return_future(): | ||
return asyncio.Future() | ||
|
||
|
||
@asyncio.coroutine | ||
def coroutine_function_pass(): | ||
pass | ||
|
||
|
||
@asyncio.coroutine | ||
def coroutine_generator(): | ||
yield | ||
|
||
|
||
@asyncio.coroutine | ||
def main(): | ||
yield from coroutine_function_return_none() | ||
yield from coroutine_function_return_object() | ||
yield from coroutine_function_return_future() | ||
yield from coroutine_function_pass() | ||
yield from coroutine_generator() |
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,2 @@ | ||
[testoptions] | ||
max_pyver=3.10 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
def toto # [syntax-error] | ||
for # [syntax-error] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
syntax-error:1:10:None:None::invalid syntax (<unknown>, line 1):UNDEFINED | ||
syntax-error:1:5:None:None::invalid syntax (<unknown>, line 1):UNDEFINED |
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.