Skip to content

Commit

Permalink
fix test get >> acquire
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Dec 22, 2015
1 parent e3f5933 commit 23ab729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pool.py
Expand Up @@ -453,7 +453,7 @@ async def go():
@pytest.mark.parametrize('dsn', pytest.dsn_list)
def test_pool_context_manager2(loop, pool):
async def go():
async with pool.get() as conn:
async with pool.acquire() as conn:
assert not conn.closed
cur = await conn.cursor()
await cur.execute('SELECT 1')
Expand All @@ -467,7 +467,7 @@ async def go():
def test_all_context_managets(dsn, loop):
async def go():
async with aioodbc.create_pool(dsn=dsn, loop=loop) as pool:
async with pool.get() as conn:
async with pool.acquire() as conn:
async with conn.cursor() as cur:
assert not pool.closed
assert not conn.closed
Expand Down

0 comments on commit 23ab729

Please sign in to comment.