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

Jim Fulton jim at zope.com
Tue May 18 13:01:41 EDT 2010


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.



More information about the Zodb-checkins mailing list