The attached patch is a small fix for irritating behaviour if you run the sqlite3 test suite twice in the same interpreter. The second time you will get printed tracebacks to stderr that are confusing. This can be applied before Python 2.5b1, otherwise I'll commit it myself after the freeze.