mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431)
This commit is contained in:
parent
be095f6c32
commit
195a46d6ff
4 changed files with 9 additions and 24 deletions
|
@ -55,8 +55,8 @@ class LockTests(unittest.IsolatedAsyncioTestCase):
|
|||
for cls in primitives_cls:
|
||||
with self.assertRaisesRegex(
|
||||
TypeError,
|
||||
rf'As of 3.10, the \*loop\* parameter was removed from '
|
||||
rf'{cls.__name__}\(\) since it is no longer necessary'
|
||||
rf"{cls.__name__}\.__init__\(\) got an unexpected "
|
||||
rf"keyword argument 'loop'"
|
||||
):
|
||||
cls(loop=loop)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue