Skip to content

Commit 8ef4459

Browse files
committed
Unbreak tests.
1 parent 7b7ce99 commit 8ef4459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_connect.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,14 @@ def test_connect_params(self):
424424
async def test_connect_args_validation(self):
425425
for val in {-1, 'a', True, False, 0}:
426426
with self.assertRaisesRegex(ValueError, 'greater than 0'):
427-
await asyncpg.connect(command_timeout=val)
427+
await asyncpg.connect(command_timeout=val, loop=self.loop)
428428

429429
for arg in {'max_cacheable_statement_size',
430430
'max_cached_statement_lifetime',
431431
'statement_cache_size'}:
432432
for val in {None, -1, True, False}:
433433
with self.assertRaisesRegex(ValueError, 'greater or equal'):
434-
await asyncpg.connect(**{arg: val})
434+
await asyncpg.connect(**{arg: val}, loop=self.loop)
435435

436436

437437
class TestConnection(tb.ConnectedTestCase):

0 commit comments

Comments
 (0)