Skip to content

Commit d721dde

Browse files
committed
BUG27810109: Fixes for failing unittest with MySQL 5.6 Py2.7.5
Fixes failing unittest on PB2 over OL7 with python 2.7.5 v2
1 parent 38d51c6 commit d721dde

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/test_bugs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import time
5252
import unittest
5353
import pickle
54+
import sys
5455

5556
import tests
5657
from tests import foreach_cnx, cnx_config
@@ -4322,6 +4323,8 @@ def test_big_column_count(self):
43224323
cur.close()
43234324

43244325

4326+
@unittest.skipIf(sys.version_info < (2, 7, 9),
4327+
"Python 2.7.9+ is required for SSL")
43254328
class BugOra25397650(tests.MySQLConnectorTests):
43264329
"""BUG#25397650: CERTIFICATE VALIDITY NOT VERIFIED
43274330
"""

tests/test_connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,8 @@ def test_cmd_reset_connection(self):
17071707
else:
17081708
self.assertNotEqual((b'2',), self.cnx.get_rows()[0][0])
17091709

1710+
@unittest.skipIf(tests.MYSQL_VERSION <= (5, 7, 1), "Shutdown CMD "
1711+
"not tested with MySQL version 5.6 (BugOra17422299)")
17101712
def test_shutdown(self):
17111713
"""Shutting down a connection"""
17121714
config = tests.get_mysql_config()

0 commit comments

Comments
 (0)