[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/publisher/browser/tests/test_icondirective.py - remove unused imports

Fred L. Drake, Jr. fdrake at gmail.com
Fri Aug 6 11:51:24 EDT 2004


Log message for revision 26936:
  - remove unused imports
  - clean up some path manipulation
  


Changed:
  U   Zope3/trunk/src/zope/app/publisher/browser/tests/test_icondirective.py


-=-
Modified: Zope3/trunk/src/zope/app/publisher/browser/tests/test_icondirective.py
===================================================================
--- Zope3/trunk/src/zope/app/publisher/browser/tests/test_icondirective.py	2004-08-06 15:43:12 UTC (rev 26935)
+++ Zope3/trunk/src/zope/app/publisher/browser/tests/test_icondirective.py	2004-08-06 15:51:24 UTC (rev 26936)
@@ -30,9 +30,8 @@
 from zope.interface import implements
 from zope.app.site.interfaces import ISite
 from zope.app.traversing.interfaces import IContainmentRoot
-from zope.security.checker import ProxyFactory, CheckerPublic
+from zope.security.checker import ProxyFactory
 
-from zope.app.tests import ztapi
 import zope.app.publisher.browser
 
 template = """<configure
@@ -70,7 +69,7 @@
         self.assertEqual(queryView(ob, 'zmi_icon', request), None)
 
         import zope.app.publisher.browser.tests as p
-        path = os.path.split(p.__file__)[0]
+        path = os.path.dirname(p.__file__)
         path = os.path.join(path, 'testfiles', 'test.gif')
 
         xmlconfig(StringIO(template % (
@@ -98,7 +97,7 @@
         self.assertEqual(queryView(ob, 'zmi_icon', request), None)
 
         import zope.app.publisher.browser.tests as p
-        path = os.path.split(p.__file__)[0]
+        path = os.path.dirname(p.__file__)
         path = os.path.join(path, 'testfiles', 'test.gif')
 
         xmlconfig(StringIO(template % (
@@ -129,7 +128,7 @@
         self.assertEqual(queryView(ob, 'zmi_icon', request), None)
 
         import zope.app.publisher.browser.tests as p
-        path = os.path.split(p.__file__)[0]
+        path = os.path.dirname(p.__file__)
         path = os.path.join(path, 'testfiles', 'test.gif')
 
         config = StringIO(template % (



More information about the Zope3-Checkins mailing list