[Modeling-cvs] ProjectModeling/Modeling/tests test_EditingContext_Global.py,1.22,1.23
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-06-19 14:19:04
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv17475/tests Modified Files: test_EditingContext_Global.py Log Message: Fixed bug #757181: under python2.2 AccessArrayFaultHandler was triggered every time the array is accessed, instead of being fired only once. Also fixed test_EditingContext_Global.test_03_toManyFaultTrigger() Index: test_EditingContext_Global.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** test_EditingContext_Global.py 12 Jun 2003 11:40:33 -0000 1.22 --- test_EditingContext_Global.py 19 Jun 2003 14:19:02 -0000 1.23 *************** *** 211,219 **** adaptorChannel=concreteAdaptorChannelForEntity('Writer', ec) - fetchCount=adaptorChannel._count_for_execute books=dard.getBooks() ! self.failUnless(len(books)==3) self.failUnless(books[0]) # just test access w/ __getitem__ ! self.failIf(adaptorChannel._count_for_execute==fetchCount) # Last, check that the original object containing the toMany fault was not --- 211,221 ---- adaptorChannel=concreteAdaptorChannelForEntity('Writer', ec) books=dard.getBooks() ! self.failUnless(len(books)==3) # triggers the fault ! fetchCount=adaptorChannel._count_for_execute ! # all subsequent accesses to the AccessArrayFaultHandler should not ! # trigger the already-fired-fault self.failUnless(books[0]) # just test access w/ __getitem__ ! self.failUnless(adaptorChannel._count_for_execute==fetchCount) # Last, check that the original object containing the toMany fault was not |