Skip to content

Commit 7b9811a

Browse files
committed
Persuade mysqlclient to use tcp instead of local domain socket
1 parent 30aeb83 commit 7b9811a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@ jobs:
9999
100100
- name: Run tests with MySQL
101101
if: matrix.database == 'mysql'
102+
# 127.0.0.1 is to persuade mysqlclient to use tcp rather than the domain socket :-/
102103
run: |
103-
uv run --all-extras --dev --with mysqlclient --resolution ${{ matrix.uv-resolution }} -m pytest --sqlalchemy-connect-url="mysql://root:mysql@localhost:3306/test_db?protocol=tcp"
104+
uv run --all-extras --dev --with mysqlclient --resolution ${{ matrix.uv-resolution }} -m pytest --sqlalchemy-connect-url="mysql://root:mysql@127.0.0.1:3306/test_db"

0 commit comments

Comments
 (0)