diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-06-11 22:32:07 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-06-11 22:33:04 +0200 |
commit | 3e14281d40d45f7807852a3956b44a9949dbf0c3 (patch) | |
tree | 2136e76c18dc96025ed11e9ad84678fbe36adcc2 /dev-python/pymysql | |
parent | dev-python/pymysql: Port to py3.9 (diff) | |
download | gentoo-3e14281d40d45f7807852a3956b44a9949dbf0c3.tar.gz gentoo-3e14281d40d45f7807852a3956b44a9949dbf0c3.tar.bz2 gentoo-3e14281d40d45f7807852a3956b44a9949dbf0c3.zip |
dev-python/pymysql: Use UNIX socket rather than TCP in tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pymysql')
-rw-r--r-- | dev-python/pymysql/pymysql-0.9.3.ebuild | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/dev-python/pymysql/pymysql-0.9.3.ebuild b/dev-python/pymysql/pymysql-0.9.3.ebuild index 2a4aa6e81605..7346a5ab5fb2 100644 --- a/dev-python/pymysql/pymysql-0.9.3.ebuild +++ b/dev-python/pymysql/pymysql-0.9.3.ebuild @@ -42,7 +42,7 @@ src_test() { --no-defaults \ --character-set-server=utf8 \ --bind-address=127.0.0.1 \ - --port=3306 \ + --port=43306 \ --socket="${T}"/mysqld.sock \ --datadir="${T}"/mysql & local pid=${!} @@ -67,6 +67,24 @@ src_test() { grant all on test2.* to test2@localhost; ' || die + cat > pymysql/tests/databases.json <<-EOF || die + [{ + "host": "localhost", + "user": "root", + "passwd": "", + "db": "test1", + "use_unicode": true, + "local_infile": true, + "unix_socket": "${T}/mysqld.sock" + }, { + "host": "localhost", + "user": "root", + "passwd": "", + "db": "test2", + "unix_socket": "${T}/mysqld.sock" + }] + EOF + distutils-r1_src_test kill "${pid}" |