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

Method test_skip_nextset

pymysql/tests/test_nextset.py:24–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.assertIsNone(cur.nextset())
23
24 def test_skip_nextset(self):
25 cur = self.connect(client_flag=CLIENT.MULTI_STATEMENTS).cursor()
26 cur.execute("SELECT 1; SELECT 2;")
27 self.assertEqual([(1,)], list(cur))
28
29 cur.execute("SELECT 42")
30 self.assertEqual([(42,)], list(cur))
31
32 def test_nextset_error(self):
33 con = self.connect(client_flag=CLIENT.MULTI_STATEMENTS)

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected