Python and database unittests

gordyt gordyt at gmail.com
Tue Aug 26 18:12:53 EDT 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()

--gordy



More information about the Python-list mailing list