Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
b058056d
Commit
b058056d
authored
Aug 08, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some PEP8
parent
1c131fc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/Zope2/Startup/tests/test_warnfilter.py
src/Zope2/Startup/tests/test_warnfilter.py
+3
-6
No files found.
src/Zope2/Startup/tests/test_warnfilter.py
View file @
b058056d
...
...
@@ -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 ZConfig
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment