Add more check to investigate Travis fails test_issue_36

This commit is contained in:
INADA Naoki
2015-02-04 17:32:33 +09:00
parent 5157c9b7d0
commit 6f4b452a24

View File

@@ -1,4 +1,5 @@
import datetime import datetime
import time
import warnings import warnings
import pymysql import pymysql
@@ -226,6 +227,9 @@ class TestNewIssues(base.PyMySQLTestCase):
# check the process list from the other connection # check the process list from the other connection
try: try:
# Wait since Travis-CI sometimes fail this test.
time.sleep(0.1)
c = self.connections[1].cursor() c = self.connections[1].cursor()
c.execute("show processlist") c.execute("show processlist")
ids = [row[0] for row in c.fetchall()] ids = [row[0] for row in c.fetchall()]