[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/tests/test_warnfilter.py Some PEP8
Hanno Schlichting
hannosch at hannosch.eu
Sun Aug 8 12:12:45 EDT 2010
Log message for revision 115558:
Some PEP8
Changed:
U Zope/trunk/src/Zope2/Startup/tests/test_warnfilter.py
-=-
Modified: Zope/trunk/src/Zope2/Startup/tests/test_warnfilter.py
===================================================================
--- Zope/trunk/src/Zope2/Startup/tests/test_warnfilter.py 2010-08-08 16:11:14 UTC (rev 115557)
+++ Zope/trunk/src/Zope2/Startup/tests/test_warnfilter.py 2010-08-08 16:12:44 UTC (rev 115558)
@@ -11,11 +11,9 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-
"""Test that the warning filter works."""
import os
-import sys
import cStringIO
import tempfile
import unittest
@@ -25,21 +23,20 @@
import Zope2.Startup
import Products
-from Zope2.Startup import datatypes
-
-from App.config import getConfiguration
-
TEMPNAME = tempfile.mktemp()
TEMPPRODUCTS = os.path.join(TEMPNAME, "Products")
+
def getSchema():
startup = os.path.dirname(os.path.realpath(Zope2.Startup.__file__))
schemafile = os.path.join(startup, 'zopeschema.xml')
return ZConfig.loadSchema(schemafile)
+
class TestSchemaWarning(Warning):
pass
+
class TestWarnFilter(unittest.TestCase):
schema = None
More information about the Zope-Checkins
mailing list