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

Method disabled_test_issue_54

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

Source from the content-addressed store, hash-verified

262 c.execute("drop table issue38")
263
264 def disabled_test_issue_54(self):
265 conn = self.connect()
266 c = conn.cursor()
267 with warnings.catch_warnings():
268 warnings.filterwarnings("ignore")
269 c.execute("drop table if exists issue54")
270 big_sql = "select * from issue54 where "
271 big_sql += " and ".join("%d=%d" % (i, i) for i in range(100000))
272
273 try:
274 c.execute("create table issue54 (id integer primary key)")
275 c.execute("insert into issue54 (id) values (7)")
276 c.execute(big_sql)
277 self.assertEqual(7, c.fetchone()[0])
278 finally:
279 c.execute("drop table issue54")
280
281
282class TestGitHubIssues(base.PyMySQLTestCase):

Callers

nothing calls this directly

Calls 4

cursorMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45
fetchoneMethod · 0.45

Tested by

no test coverage detected