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

Method test_cleanup_rows_buffered

pymysql/tests/test_cursor.py:77–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self.assertIsNone(c2.fetchone())
76
77 def test_cleanup_rows_buffered(self):
78 conn = self.test_connection
79 cursor = conn.cursor(pymysql.cursors.Cursor)
80
81 cursor.execute("select * from test as t1, test as t2")
82 for counter, row in enumerate(cursor):
83 if counter > 10:
84 break
85
86 del cursor
87
88 c2 = conn.cursor()
89 c2.execute("select 1")
90
91 self.assertEqual(c2.fetchone(), (1,))
92 self.assertIsNone(c2.fetchone())
93
94 def test_executemany(self):
95 conn = self.test_connection

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
executeMethod · 0.80
fetchoneMethod · 0.45

Tested by

no test coverage detected