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.
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.