home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 July / maximum-cd-2011-07.iso / DiscContents / LibO_3.3.2_Win_x86_install_multi.exe / libreoffice1.cab / test_sqlite.py < prev    next >
Encoding:
Python Source  |  2011-03-15  |  598 b   |  18 lines

  1. from test.test_support import run_unittest, TestSkipped
  2.  
  3. try:
  4.     import _sqlite3
  5. except ImportError:
  6.     raise TestSkipped('no sqlite available')
  7. from sqlite3.test import (dbapi, types, userfunctions, py25tests,
  8.                                 factory, transactions, hooks, regression,
  9.                                 dump)
  10.  
  11. def test_main():
  12.     run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(),
  13.                  py25tests.suite(), factory.suite(), transactions.suite(),
  14.                  hooks.suite(), regression.suite(), dump.suite())
  15.  
  16. if __name__ == "__main__":
  17.     test_main()
  18.