[Modeling-cvs] ProjectModeling/Modeling/tests test_EditingContext_Global.py,1.47,1.48
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2004-02-14 19:26:27
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11886 Modified Files: test_EditingContext_Global.py Log Message: Fixed: test_12 was failing for SQLite because MDL_TRANSIENT_DB_CONNECTION is no more the default Index: test_EditingContext_Global.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global.py,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** test_EditingContext_Global.py 14 Feb 2004 18:17:21 -0000 1.47 --- test_EditingContext_Global.py 14 Feb 2004 19:19:48 -0000 1.48 *************** *** 1512,1515 **** --- 1512,1522 ---- author_books_model.entityNamed('Writer').attributeNamed('birthday').setExternalType('DATE') + # SQLite specifics: test_12 requires that the framework closes the db + # connection, so that the new context/channel can connect to the db (sqlite + # does not allow concurrent access to the db). + if database_cfg=='SQLite.cfg': + import os + os.environ['MDL_TRANSIENT_DB_CONNECTION']='yes' + utils.enable_model_cache_and_compute() |