[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/testConnection.py Implementing context managers with modules no longer works in Python
Jim Fulton
jim at zope.com
Sun Jul 11 07:59:34 EDT 2010
Log message for revision 114577:
Implementing context managers with modules no longer works in Python
2.7. :(
Changed:
U ZODB/trunk/src/ZODB/tests/testConnection.py
-=-
Modified: ZODB/trunk/src/ZODB/tests/testConnection.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testConnection.py 2010-07-11 11:33:17 UTC (rev 114576)
+++ ZODB/trunk/src/ZODB/tests/testConnection.py 2010-07-11 11:59:33 UTC (rev 114577)
@@ -395,7 +395,7 @@
>>> dm = conn.root()
>>> ntry = 0
- >>> with transaction:
+ >>> with transaction.manager:
... dm['ntry'] = 0
>>> import ZODB.POSException
More information about the Zodb-checkins
mailing list