MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_issue_6

Method test_issue_6

pymysql/tests/test_issues.py:64–72  ·  view source on GitHub ↗

exception: TypeError: ord() expected a character, but string of length 0 found

(self)

Source from the content-addressed store, hash-verified

62 cur.execute("select * from information_schema.tables")
63
64 def test_issue_6(self):
65 """exception: TypeError: ord() expected a character, but string of length 0 found"""
66 # ToDo: this test requires access to db 'mysql'.
67 kwargs = self.databases[0].copy()
68 kwargs["database"] = "mysql"
69 conn = pymysql.connect(**kwargs)
70 c = conn.cursor()
71 c.execute("select * from user")
72 conn.close()
73
74 def test_issue_8(self):
75 """Primary Key and Index error when selecting data"""

Callers

nothing calls this directly

Calls 4

cursorMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected