Python and database unittests

gordyt gordyt at
Wed Aug 27 00:12:53 CEST 2008

Daniel I don't know if it would work for your situation or not, but if
you are using Python 2.5, you could use the now built-in sqlite3
module.  If you didn't even want to create a temporary database file
you could use the special memory-only syntax like this:

>>> import sqlite3
>>> conn =sqlite3.connect(":memory:")
>>> # use the connection
>>> conn.close()


More information about the Python-list mailing list