Skip to content

Commit fe46dbd

Browse files
author
James William Pye
committed
Describe why scroll = True.
1 parent 0dcb53d commit fe46dbd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

postgresql/test/test_driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def raise_exc(l):
297297

298298
def testItsClosed(self):
299299
ps = self.db.prepare("SELECT 1")
300+
# If scroll is False it will pre-fetch, and no error will be thrown.
300301
c = ps(scroll = True)
301302
#
302303
c.close()

0 commit comments

Comments
 (0)