[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_config.py make a test work with Python 2.4 as well as 2.3.x

Fred L. Drake, Jr. fdrake at gmail.com
Wed Aug 4 14:59:25 EDT 2004


Log message for revision 26905:
  make a test work with Python 2.4 as well as 2.3.x


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 15:45:03 UTC (rev 26904)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_config.py	2004-08-04 18:59:24 UTC (rev 26905)
@@ -260,8 +260,10 @@
 
     Cleanup:
 
-    >>> del sys.modules['zope.configuration.tests.victim']
-    >>> del sys.modules['zope.configuration.tests.bad']
+    >>> 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']
 
     """
     



More information about the Zope3-Checkins mailing list