summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>2023-01-25 20:01:01 (GMT)
committerGitHub <noreply@github.com>2023-01-25 20:01:01 (GMT)
commita178ba82bfe2f2fb6f6ff0e67cb734fd7c4321e3 (patch)
treee87728fb6aa1ee3717d8483e2b14638b7e89ffbf /Lib/test/test_asyncio
parent952a1d9cc970508b280af475c0be1809692f0c76 (diff)
downloadcpython-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.py2
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):