8000 gh-93357: Port test cases to IsolatedAsyncioTestCase, part 2 by arhadthedev · Pull Request #97896 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-93357: Port test cases to IsolatedAsyncioTestCase, part 2 #97896

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
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
Remove self.loop.set_exception_handler
  • Loading branch information
arhadthedev authored Oct 5, 2022
commit a46c2227b1b7d44ff776f8c79c5241a9c9c803ae
5 changes: 0 additions & 5 deletions Lib/test/test_asyncio/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,14 +980,9 @@ async def inner(httpd):
wr.close()
await wr.wait_closed()

messages = []
self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))

with test_utils.run_test_server() as httpd:
await inner(httpd)

self.assertEqual(messages, [])

async def test_async_writer_api_exception_after_close(self):
async def inner(httpd):
rd, wr = await asyncio.open_connection(*httpd.address)
Expand Down
0