From 6f4b452a24355dfbc1b423197b1b604b927d8f1c Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Wed, 4 Feb 2015 17:32:33 +0900 Subject: [PATCH] Add more check to investigate Travis fails test_issue_36 --- pymysql/tests/test_issues.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pymysql/tests/test_issues.py b/pymysql/tests/test_issues.py index a64b15c..a3cac4a 100644 --- a/pymysql/tests/test_issues.py +++ b/pymysql/tests/test_issues.py @@ -1,4 +1,5 @@ import datetime +import time import warnings import pymysql @@ -226,6 +227,9 @@ class TestNewIssues(base.PyMySQLTestCase): # check the process list from the other connection try: + # Wait since Travis-CI sometimes fail this test. + time.sleep(0.1) + c = self.connections[1].cursor() c.execute("show processlist") ids = [row[0] for row in c.fetchall()]