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

Method test_issue_38

pymysql/tests/test_issues.py:250–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

248 c.execute("set @foo = 'bar'")
249
250 def test_issue_38(self):
251 conn = self.connect()
252 c = conn.cursor()
253 datum = "a" * 1024 * 1023 # reduced size for most default mysql installs
254
255 try:
256 with warnings.catch_warnings():
257 warnings.filterwarnings("ignore")
258 c.execute("drop table if exists issue38")
259 c.execute("create table issue38 (id integer, data mediumblob)")
260 c.execute("insert into issue38 values (1, %s)", (datum,))
261 finally:
262 c.execute("drop table issue38")
263
264 def disabled_test_issue_54(self):
265 conn = self.connect()

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected