summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-08-11 12:57:12 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-08-11 16:43:31 +0200
commit0d6cd2bbb6a72bab54432507faa2ecf7b90b9ab9 (patch)
tree9c8dc808e144cfa0a10fcb8b1ef809cb242d43a1 /dev-python/pymysql/files/pymysql-0.10.0-fix-tests.patch
parentwww-client/opera: Version 70.0.3728.106 (diff)
downloadgentoo-0d6cd2bbb6a72bab54432507faa2ecf7b90b9ab9.tar.gz
gentoo-0d6cd2bbb6a72bab54432507faa2ecf7b90b9ab9.tar.bz2
gentoo-0d6cd2bbb6a72bab54432507faa2ecf7b90b9ab9.zip
dev-python/pymysql: bump to v0.10.0
Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-python/pymysql/files/pymysql-0.10.0-fix-tests.patch')
-rw-r--r--dev-python/pymysql/files/pymysql-0.10.0-fix-tests.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/pymysql/files/pymysql-0.10.0-fix-tests.patch b/dev-python/pymysql/files/pymysql-0.10.0-fix-tests.patch
new file mode 100644
index 000000000000..aa9bc53b0358
--- /dev/null
+++ b/dev-python/pymysql/files/pymysql-0.10.0-fix-tests.patch
@@ -0,0 +1,30 @@
+--- a/pymysql/tests/test_connection.py
++++ b/pymysql/tests/test_connection.py
+@@ -70,6 +70,9 @@ class TestAuthentication(base.PyMySQLTestCase):
+ for r in cur:
+ if (r[1], r[2]) != (u'ACTIVE', u'AUTHENTICATION'):
+ continue
++ if r[0] == u'unix_socket':
++ socket_plugin_name = r[0]
++ socket_found = True
+ if r[3] == u'auth_socket.so':
+ socket_plugin_name = r[0]
+ socket_found = True
+@@ -188,7 +191,7 @@ class TestAuthentication(base.PyMySQLTestCase):
+ cur.execute("install plugin two_questions soname 'dialog_examples.so'")
+ TestAuthentication.two_questions_found = True
+ self.realTestDialogAuthTwoQuestions()
+- except pymysql.err.InternalError:
++ except pymysql.err.OperationalError:
+ pytest.skip('we couldn\'t install the two_questions plugin')
+ finally:
+ if TestAuthentication.two_questions_found:
+@@ -218,7 +221,7 @@ class TestAuthentication(base.PyMySQLTestCase):
+ cur.execute("install plugin three_attempts soname 'dialog_examples.so'")
+ TestAuthentication.three_attempts_found = True
+ self.realTestDialogAuthThreeAttempts()
+- except pymysql.err.InternalError:
++ except pymysql.err.OperationalError:
+ pytest.skip('we couldn\'t install the three_attempts plugin')
+ finally:
+ if TestAuthentication.three_attempts_found: