Revert the changes made in commit 02910b7 to the mysql error packet
parsing, as it didn't take the CLIENT_PROTOCOL_41 case into account.
It appears that the non-CLIENT_PROTOCOL_41 case was off by one as well
(sliced data on 4 vs 3).
I also added two new tests to cover those cases.
See: https://dev.mysql.com/doc/internals/en/packet-ERR_Packet.html
19 lines
600 B
Python
19 lines
600 B
Python
# Sorted by alphabetical order
|
|
from pymysql.tests.test_DictCursor import *
|
|
from pymysql.tests.test_SSCursor import *
|
|
from pymysql.tests.test_basic import *
|
|
from pymysql.tests.test_connection import *
|
|
from pymysql.tests.test_converters import *
|
|
from pymysql.tests.test_cursor import *
|
|
from pymysql.tests.test_err import *
|
|
from pymysql.tests.test_issues import *
|
|
from pymysql.tests.test_load_local import *
|
|
from pymysql.tests.test_nextset import *
|
|
from pymysql.tests.test_optionfile import *
|
|
|
|
from pymysql.tests.thirdparty import *
|
|
|
|
if __name__ == "__main__":
|
|
import unittest2
|
|
unittest2.main()
|