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

Method test_issue_37

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

Source from the content-addressed store, hash-verified

240 del self.connections[1]
241
242 def test_issue_37(self):
243 conn = self.connect()
244 c = conn.cursor()
245 self.assertEqual(1, c.execute("SELECT @foo"))
246 self.assertEqual((None,), c.fetchone())
247 self.assertEqual(0, c.execute("SET @foo = 'bar'"))
248 c.execute("set @foo = 'bar'")
249
250 def test_issue_38(self):
251 conn = self.connect()

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