SVN: ZODB/trunk/src/ZODB/tests/testConnection.py Implementing context managers with modules no longer works in Python

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100711115934.31494941C9__37735.1680807353$1278849582$gmane$org@cvs.zope.org>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.