SVN: ZODB/trunk/src/ZODB/tests/testConnection.py Add future import so tests using with will work w Python 2.5.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
Log message for revision 112466:
  Add future import so tests using with will work w Python 2.5.
  
  (Also use standard doctest.)
  

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-05-18 16:58:27 UTC (rev 112465)
+++ ZODB/trunk/src/ZODB/tests/testConnection.py	2010-05-18 17:01:41 UTC (rev 112466)
@@ -13,7 +13,9 @@
 ##############################################################################
 """Unit tests for the Connection class."""
 
-from zope.testing import doctest
+from __future__ import with_statement
+
+import doctest
 import unittest
 import warnings
 
@@ -382,7 +384,6 @@
 
 def test_transaction_retry_convenience():
     """
-
     Simple test to verify integration with the transaction retry
     helper my verifying that we can raise ConflictError and have it
     handled properly.
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.