bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431)

This commit is contained in:
Serhiy Storchaka 2022-02-21 13:25:52 +02:00 committed by GitHub
parent be095f6c32
commit 195a46d6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 24 deletions

View file

@ -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)