Update of /cvsroot/modeling/ProjectModeling/Modeling/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8003
Modified Files:
test_EditingContext_Global_Inheritance.py
Log Message:
Fixed: test_03 was failing for SQLite because MDL_TRANSIENT_DB_CONNECTION is no more the default
Index: test_EditingContext_Global_Inheritance.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global_Inheritance.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** test_EditingContext_Global_Inheritance.py 14 Feb 2004 18:17:21 -0000 1.22
--- test_EditingContext_Global_Inheritance.py 14 Feb 2004 19:00:28 -0000 1.23
***************
*** 903,906 ****
--- 903,914 ----
return DCOracle2.Timestamp(yyyy,mm,dd,h,m,s)
DateFrom=OracleDateFrom
+
+ # SQLite specifics: test_03 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()
|