[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_config.py use a different fix for the Python 2.4 compatibility issue

Fred L. Drake, Jr. fdrake at gmail.com
Wed Aug 4 15:16:55 EDT 2004


Log message for revision 26906:
  use a different fix for the Python 2.4 compatibility issue
  
  (revert 26905 and merge 26865 from the trunk, so they use the same code)
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_config.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_config.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_config.py	2004-08-04 18:59:24 UTC (rev 26905)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_config.py	2004-08-04 19:16:55 UTC (rev 26906)
@@ -260,13 +260,12 @@
 
     Cleanup:
 
-    >>> if 'zope.configuration.tests.victim' in sys.modules:
-    ...     del sys.modules['zope.configuration.tests.victim']
-    >>> if 'zope.configuration.tests.bad' in sys.modules:
-    ...     del sys.modules['zope.configuration.tests.bad']
+    >>> for name in ('zope.configuration.tests.victim',
+    ...              'zope.configuration.tests.bad'):
+    ...    if name in sys.modules:
+    ...        del sys.modules[name]
 
     """
-    
 
 
 def test_suite():



More information about the Zope3-Checkins mailing list