[Zope3-checkins] CVS: Zope3/src/zope/configuration/tests - test_hookregistry.py:1.3 test_multiplexml.py:1.4 test_xml.py:1.5

Martijn Faassen m.faassen@vet.uu.nl
Thu, 1 May 2003 15:36:11 -0400


Update of /cvs-repository/Zope3/src/zope/configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv30407/zope/configuration/tests

Modified Files:
	test_hookregistry.py test_multiplexml.py test_xml.py 
Log Message:
Importgeddon part the second. Removed unused imports throughout the
source tree. This should have taken care of most unused imports
in Zope 3. :)


=== Zope3/src/zope/configuration/tests/test_hookregistry.py 1.2 => 1.3 ===
--- Zope3/src/zope/configuration/tests/test_hookregistry.py:1.2	Wed Dec 25 09:13:34 2002
+++ Zope3/src/zope/configuration/tests/test_hookregistry.py	Thu May  1 15:35:40 2003
@@ -16,7 +16,7 @@
 $Id$
 """
 
-import unittest, sys
+import unittest
 
 def dummyHook():
     return "hooked implementation"


=== Zope3/src/zope/configuration/tests/test_multiplexml.py 1.3 => 1.4 ===
--- Zope3/src/zope/configuration/tests/test_multiplexml.py:1.3	Tue Mar 11 15:11:19 2003
+++ Zope3/src/zope/configuration/tests/test_multiplexml.py	Thu May  1 15:35:40 2003
@@ -11,10 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-import unittest, sys, os
+import unittest, os
 from tempfile import mktemp
 import zope.configuration.tests.directives
-from zope.configuration.tests.directives import protections, done
+from zope.configuration.tests.directives import protections
 from zope.configuration.xmlconfig import XMLConfig
 from zope.testing.cleanup import CleanUp # Base class w registry cleanup
 


=== Zope3/src/zope/configuration/tests/test_xml.py 1.4 => 1.5 ===
--- Zope3/src/zope/configuration/tests/test_xml.py:1.4	Tue Apr  8 15:02:39 2003
+++ Zope3/src/zope/configuration/tests/test_xml.py	Thu May  1 15:35:40 2003
@@ -12,7 +12,6 @@
 #
 ##############################################################################
 import sys, unittest
-from cStringIO import StringIO
 
 # Caution:  tempfile.NamedTemporaryFile cannot be used on Windows, because
 # the tests here want to open the file more than once.  You can't do that
@@ -20,6 +19,7 @@
 import tempfile
 
 class TempFile:
+    # this actually becomes the remove() method
     from os import remove
 
     def __init__(self):
@@ -38,9 +38,6 @@
             self.remove(self.file.name)
             self.closed = 1
 
-from zope.configuration.xmlconfig import xmlconfig
-from zope.configuration.xmlconfig import testxmlconfig
-from zope.configuration.meta import InvalidDirective, BrokenDirective
 from zope.testing.cleanup import CleanUp
 
 class Test(CleanUp, unittest.TestCase):