Commit b058056d authored by Hanno Schlichting's avatar Hanno Schlichting

Some PEP8

parent 1c131fc8
...@@ -11,11 +11,9 @@ ...@@ -11,11 +11,9 @@
# FOR A PARTICULAR PURPOSE. # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
"""Test that the warning filter works.""" """Test that the warning filter works."""
import os import os
import sys
import cStringIO import cStringIO
import tempfile import tempfile
import unittest import unittest
...@@ -25,21 +23,20 @@ import ZConfig ...@@ -25,21 +23,20 @@ import ZConfig
import Zope2.Startup import Zope2.Startup
import Products import Products
from Zope2.Startup import datatypes
from App.config import getConfiguration
TEMPNAME = tempfile.mktemp() TEMPNAME = tempfile.mktemp()
TEMPPRODUCTS = os.path.join(TEMPNAME, "Products") TEMPPRODUCTS = os.path.join(TEMPNAME, "Products")
def getSchema(): def getSchema():
startup = os.path.dirname(os.path.realpath(Zope2.Startup.__file__)) startup = os.path.dirname(os.path.realpath(Zope2.Startup.__file__))
schemafile = os.path.join(startup, 'zopeschema.xml') schemafile = os.path.join(startup, 'zopeschema.xml')
return ZConfig.loadSchema(schemafile) return ZConfig.loadSchema(schemafile)
class TestSchemaWarning(Warning): class TestSchemaWarning(Warning):
pass pass
class TestWarnFilter(unittest.TestCase): class TestWarnFilter(unittest.TestCase):
schema = None schema = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment