diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2023-01-25 20:01:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 20:01:01 (GMT) |
commit | a178ba82bfe2f2fb6f6ff0e67cb734fd7c4321e3 (patch) | |
tree | e87728fb6aa1ee3717d8483e2b14638b7e89ffbf /Lib/test/test_asyncio | |
parent | 952a1d9cc970508b280af475c0be1809692f0c76 (diff) | |
download | cpython-a178ba82bfe2f2fb6f6ff0e67cb734fd7c4321e3.zip cpython-a178ba82bfe2f2fb6f6ff0e67cb734fd7c4321e3.tar.gz cpython-a178ba82bfe2f2fb6f6ff0e67cb734fd7c4321e3.tar.bz2 |
gh-101326: Fix regression when passing None to FutureIter.throw (#101327)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_futures.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py index 56b0b86..2184b20 100644 --- a/Lib/test/test_asyncio/test_futures.py +++ b/Lib/test/test_asyncio/test_futures.py @@ -612,6 +612,8 @@ class BaseFutureTests: Exception, Exception("elephant"), 32) self.assertRaises(TypeError, fi.throw, Exception("elephant"), Exception("elephant")) + # https://github.com/python/cpython/issues/101326 + self.assertRaises(ValueError, fi.throw, ValueError, None, None) self.assertRaises(TypeError, fi.throw, list) def test_future_del_collect(self): |