8000 gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives by iritkatriel · Pull Request #102619 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives #102619

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

Closed
wants to merge 12 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-79940: skip TestGetAsyncGenState on wasm as it requires working …
…sockets (GH-102605)

Skip `TestGetAsyncGenState` and restoring of the default event loop policy in `test_inspect` if platform lacks working socket support.

Fixes #11590

Automerge-Triggered-By: GH:kumaraditya303
  • Loading branch information
tkren authored and iritkatriel committed Mar 12, 2023
commit 45cc601e685a775fa7e50cfd2d04466d900f8e12
4 changes: 3 additions & 1 deletion Lib/test/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def revise(filename, *args):


def tearDownModule():
asyncio.set_event_loop_policy(None)
if support.has_socket_support:
asyncio.set_event_loop_policy(None)


def signatures_with_lexicographic_keyword_only_parameters():
Expand Down Expand Up @@ -2326,6 +2327,7 @@ async def func(a=None):
{'a': None, 'gencoro': gencoro, 'b': 'spam'})


@support.requires_working_socket()
class TestGetAsyncGenState(unittest.IsolatedAsyncioTestCase):

def setUp(self):
Expand Down
0