Skip to content

Test failures with MySQL 5.7 in Ubuntu Xenial and Yakkety #478

Description

@ltangvald

At https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/tests/test_issues.py#L460 (and 470)
the test checks for python version > 3.2 and MySQL version to see if it should expect the deprecation warning 5.7 will give for the statement. However, this warning is also thrown when running the test with python 2.7, causing the test to fail when building the python-pymysql package in Ubuntu Xenial and Yakkety.
Ubuntu Launchpad bug: https://bugs.launchpad.net/ubuntu/+source/python-pymysql/+bug/1592664

Suggested fix

Simply removing the check on python version seems to fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions