Skip to content

Commit fe5d34e

Browse files
committed
Skip RefreshOption.SLAVE test which was removed in MySQL 5.7.41
1 parent 47ca6ff commit fe5d34e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,10 @@ def test_get_desc(self):
594594
tests.MYSQL_VERSION > (8, 0, 31),
595595
"RefreshOption.SLAVE was removed in 8.0.32",
596596
)
597+
@unittest.skipIf(
598+
tests.MYSQL_VERSION[:2] == (5, 7) and tests.MYSQL_VERSION > (5, 7, 40),
599+
"RefreshOption.SLAVE was removed in 5.7.41",
600+
)
597601
def test_deprecated(self):
598602
"""Test deprecated warning is raised"""
599603
with warnings.catch_warnings(record=True) as warn:

0 commit comments

Comments
 (0)