[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py
Removed a test that was disabled and seemed very hard to get right.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Jul 8 14:21:18 EDT 2004
Log message for revision 26208:
Removed a test that was disabled and seemed very hard to get right.
-=-
Modified: Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py
===================================================================
--- Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py 2004-07-08 18:04:47 UTC (rev 26207)
+++ Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py 2004-07-08 18:21:18 UTC (rev 26208)
@@ -294,30 +294,8 @@
self.publication.handleException(
self.object, self.request, sys.exc_info(), retry_allowed=False)
# assert that we get a new transaction
- self.assert_(txn is not get_transaction())
+ self.assert_(txn is not get_transaction())
- def testCommitTransactionNoErrorLoggingService(self):
- # XXX This test is disabled because it would fail.
-
- # Though the publication commits a transaction with a note in
- # case the error logging service is absent, the transaction is
- # not logged in the undo log because no persistent objects are
- # modified in it.
- return
-
- root = self.db.open().root()
- last_txn_info = self.db.undoInfo()[0]
-
- try:
- raise Exception
- except:
- pass
- self.publication.handleException(
- self.object, self.request, sys.exc_info(), retry_allowed=False)
-
- new_txn_info = self.db.undoInfo()[0]
- self.failIfEqual(last_txn_info, new_txn_info)
-
def testAbortTransactionWithErrorLoggingService(self):
# provide our fake error logging service
sm = getGlobalServices()
More information about the Zope3-Checkins
mailing list