Skip to content

Commit

Permalink
Tonybaloney verify 312 (#456)
Browse files Browse the repository at this point in the history
* Test Python 3.12 in CI

* Use latest pyodbc

* Fix f string.

---------

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
  • Loading branch information
jettify and tonybaloney committed Oct 28, 2023
1 parent 53fe8a6 commit 732a67d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def read(f):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX",
"Environment :: Web Environment",
"Development Status :: 3 - Alpha",
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def dsn(tmp_path, request, db):
mysql_params = request.getfixturevalue("mysql_params")
conf = create_mysql_dsn(mysql_params)
else:
conf = os.environ.get(
"DSN", f'Driver=SQLite3;Database={tmp_path / "sqlite.db"}'
)
p = tmp_path / "sqlite.db"
conf = os.environ.get("DSN", "Driver=SQLite3;Database={}".format(p))

return conf


@pytest_asyncio.fixture
async def conn(dsn, connection_maker):
assert dsn
connection = await connection_maker()
yield connection

Expand Down

0 comments on commit 732a67d

Please sign in to comment.