Skip to content

Commit 732a67d

Browse files
jettifytonybaloney
andauthored
Tonybaloney verify 312 (#456)
* Test Python 3.12 in CI * Use latest pyodbc * Fix f string. --------- Co-authored-by: Anthony Shaw <[email protected]>
1 parent 53fe8a6 commit 732a67d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
python-version: ['3.9', '3.10', '3.11']
24+
python-version: ['3.9', '3.10', '3.11', '3.12']
2525

2626
steps:
2727
- uses: actions/checkout@v3

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def read(f):
2121
"Programming Language :: Python :: 3.9",
2222
"Programming Language :: Python :: 3.10",
2323
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
2425
"Operating System :: POSIX",
2526
"Environment :: Web Environment",
2627
"Development Status :: 3 - Alpha",

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ def dsn(tmp_path, request, db):
8585
mysql_params = request.getfixturevalue("mysql_params")
8686
conf = create_mysql_dsn(mysql_params)
8787
else:
88-
conf = os.environ.get(
89-
"DSN", f'Driver=SQLite3;Database={tmp_path / "sqlite.db"}'
90-
)
88+
p = tmp_path / "sqlite.db"
89+
conf = os.environ.get("DSN", "Driver=SQLite3;Database={}".format(p))
9190

9291
return conf
9392

9493

9594
@pytest_asyncio.fixture
9695
async def conn(dsn, connection_maker):
96+
assert dsn
9797
connection = await connection_maker()
9898
yield connection
9999

0 commit comments

Comments
 (0)