8000 gh-101326: Fix regression when passing None to FutureIter.throw by hauntsaninja · Pull Request #101327 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-101326: Fix regression when passing None to FutureIter.throw #101327

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 6 commits into from
Jan 25, 2023
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
test
  • Loading branch information
hauntsaninja committed Jan 25, 2023
commit aa59b1323aef9c48af355e485ff7c8b269d82bdb
2 changes: 2 additions & 0 deletions Lib/test/test_asyncio/test_futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@ def test_future_iter_throw(self):
self.assertRaises(TypeError, fi.throw,
Exception("elephant"), Exception("elephant"))
self.assertRaises(TypeError, fi.throw, list)
# https://github.com/python/cpython/issues/101326
self.assertRaises(ValueError, fi.throw, ValueError, None, None)

def test_future_del_collect(self):
class Evil:
Expand Down
0