Skip to content

Commit

Permalink
Apply pyupgrade --py37-plus (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify authored Mar 16, 2023
1 parent 09f5d61 commit 4493371
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# aiomysql documentation build configuration file, created by
# sphinx-quickstart on Sun Jan 18 22:02:31 2015.
Expand Down
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def pg_params(loop, pg_server):
async def _pg_server_helper(host, docker, session_id):
pg_tag = "9.5"

await docker.pull("postgres:{}".format(pg_tag))
await docker.pull(f"postgres:{pg_tag}")
container = await docker.containers.create_or_replace(
name=f"aioodbc-test-server-{pg_tag}-{session_id}",
config={
Expand Down Expand Up @@ -119,7 +119,7 @@ async def _pg_server_helper(host, docker, session_id):
last_error = e
await asyncio.sleep(random.uniform(0.1, 1))
else:
pytest.fail("Cannot start postgres server: {}".format(last_error))
pytest.fail(f"Cannot start postgres server: {last_error}")

yield container_info
finally:
Expand Down Expand Up @@ -150,11 +150,11 @@ async def mysql_params(loop, mysql_server):
@pytest.fixture(scope="session")
async def mysql_server(loop, host, docker, session_id):
mysql_tag = "5.7"
await docker.pull("mysql:{}".format(mysql_tag))
await docker.pull(f"mysql:{mysql_tag}")
container = await docker.containers.create_or_replace(
name=f"aioodbc-test-server-{mysql_tag}-{session_id}",
config={
"Image": "mysql:{}".format(mysql_tag),
"Image": f"mysql:{mysql_tag}",
"AttachStdout": False,
"AttachStderr": False,
"Env": [
Expand Down Expand Up @@ -192,7 +192,7 @@ async def mysql_server(loop, host, docker, session_id):
last_error = e
await asyncio.sleep(random.uniform(0.1, 1))
else:
pytest.fail("Cannot start mysql server: {}".format(last_error))
pytest.fail(f"Cannot start mysql server: {last_error}")

container_info = {
"port": port,
Expand Down

0 comments on commit 4493371

Please sign in to comment.