[Python-checkins] python/dist/src/Lib/test test_bsddb3.py,NONE,1.1 regrtest.py,1.101,1.102
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Tue, 19 Nov 2002 09:47:35 -0800
- Previous message: [Python-checkins] python/dist/src/Lib/bsddb/test __init__.py,NONE,1.1 test_associate.py,NONE,1.1 test_basics.py,NONE,1.1 test_compat.py,NONE,1.1 test_dbobj.py,NONE,1.1 test_dbshelve.py,NONE,1.1 test_dbtables.py,NONE,1.1 test_env_close.py,NONE,1.1 test_get_none.py,NONE,1.1 test_join.py,NONE,1.1 test_lock.py,NONE,1.1 test_misc.py,NONE,1.1 test_queue.py,NONE,1.1 test_recno.py,NONE,1.1 test_thread.py,NONE,1.1
- Next message: [Python-checkins] python/dist/src/Lib/bsddb db.py,1.1,1.2 dbshelve.py,1.1,1.2 dbtables.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv32371/Lib/test
Modified Files:
regrtest.py
Added Files:
test_bsddb3.py
Log Message:
Importing test suite from bsddb3 3.4.0 (with modifications).
--- NEW FILE: test_bsddb3.py ---
# Test driver for bsddb package.
"""
Run all test cases.
"""
import sys
import unittest
from test.test_support import requires, verbose, run_suite
requires('bsddb')
verbose = 0
if 'verbose' in sys.argv:
verbose = 1
sys.argv.remove('verbose')
if 'silent' in sys.argv: # take care of old flag, just in case
verbose = 0
sys.argv.remove('silent')
def suite():
test_modules = [ 'test_compat',
'test_basics',
'test_misc',
'test_dbobj',
'test_recno',
'test_queue',
'test_get_none',
'test_dbshelve',
'test_dbtables',
'test_thread',
'test_lock',
'test_associate',
]
alltests = unittest.TestSuite()
for name in test_modules:
module = __import__("bsddb.test."+name, globals(), locals(), name)
print module,name
alltests.addTest(module.suite())
return alltests
# For invocation through regrtest
def test_main():
tests = suite()
run_suite(tests)
# For invocation as a script
if __name__ == '__main__':
from bsddb import db
print '-=' * 38
print db.DB_VERSION_STRING
print 'bsddb3.db.version(): %s' % (db.version(), )
print 'bsddb3.db.__version__: %s' % db.__version__
print 'bsddb3.db.cvsid: %s' % db.cvsid
print 'python version: %s' % sys.version
print '-=' * 38
unittest.main( defaultTest='suite' )
Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -d -r1.101 -r1.102
*** regrtest.py 17 Oct 2002 20:36:08 -0000 1.101
--- regrtest.py 19 Nov 2002 17:46:59 -0000 1.102
***************
*** 56,59 ****
--- 56,62 ----
network - It is okay to run tests that use external network
resource, e.g. testing SSL support for sockets.
+
+ bsddb - It is okay to run the bsddb testsuite, which takes
+ a long time to complete.
"""
***************
*** 79,83 ****
from test import test_support
! RESOURCE_NAMES = ('curses', 'largefile', 'network')
--- 82,86 ----
from test import test_support
! RESOURCE_NAMES = ('curses', 'largefile', 'network', 'bsddb')
- Previous message: [Python-checkins] python/dist/src/Lib/bsddb/test __init__.py,NONE,1.1 test_associate.py,NONE,1.1 test_basics.py,NONE,1.1 test_compat.py,NONE,1.1 test_dbobj.py,NONE,1.1 test_dbshelve.py,NONE,1.1 test_dbtables.py,NONE,1.1 test_env_close.py,NONE,1.1 test_get_none.py,NONE,1.1 test_join.py,NONE,1.1 test_lock.py,NONE,1.1 test_misc.py,NONE,1.1 test_queue.py,NONE,1.1 test_recno.py,NONE,1.1 test_thread.py,NONE,1.1
- Next message: [Python-checkins] python/dist/src/Lib/bsddb db.py,1.1,1.2 dbshelve.py,1.1,1.2 dbtables.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]