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
991f3944
Commit
991f3944
authored
Jul 12, 2007
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Startup tests left a tainted Products.__path__.
parent
91f052e8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
lib/python/Zope2/Startup/tests/testStarter.py
lib/python/Zope2/Startup/tests/testStarter.py
+3
-0
lib/python/Zope2/Startup/tests/test_schema.py
lib/python/Zope2/Startup/tests/test_schema.py
+5
-0
lib/python/Zope2/Startup/tests/test_warnfilter.py
lib/python/Zope2/Startup/tests/test_warnfilter.py
+3
-0
No files found.
lib/python/Zope2/Startup/tests/testStarter.py
View file @
991f3944
...
...
@@ -26,6 +26,7 @@ from ZConfig.components.logger.tests import test_logger
from
ZConfig.components.logger.loghandler
import
NullHandler
import
Zope2.Startup
import
Products
from
App.config
import
getConfiguration
,
setConfiguration
...
...
@@ -63,6 +64,8 @@ class ZopeStarterTestCase(test_logger.LoggingTestBase):
os
.
rmdir
(
TEMPNAME
)
except
:
pass
Products
.
__path__
=
[
d
for
d
in
Products
.
__path__
if
os
.
path
.
exists
(
d
)]
test_logger
.
LoggingTestBase
.
tearDown
(
self
)
# reset logger states
for
name
in
(
None
,
'access'
,
'trace'
):
...
...
lib/python/Zope2/Startup/tests/test_schema.py
View file @
991f3944
...
...
@@ -21,6 +21,7 @@ import unittest
import
ZConfig
import
Zope2.Startup
import
Products
from
Zope2.Startup
import
datatypes
...
...
@@ -43,6 +44,10 @@ class StartupTestCase(unittest.TestCase):
if
self
.
schema
is
None
:
StartupTestCase
.
schema
=
getSchema
()
def
tearDown
(
self
):
Products
.
__path__
=
[
d
for
d
in
Products
.
__path__
if
os
.
path
.
exists
(
d
)]
def
load_config_text
(
self
,
text
):
# We have to create a directory of our own since the existence
# of the directory is checked. This handles this in a
...
...
lib/python/Zope2/Startup/tests/test_warnfilter.py
View file @
991f3944
...
...
@@ -23,6 +23,7 @@ import warnings
import
ZConfig
import
Zope2.Startup
import
Products
from
Zope2.Startup
import
datatypes
...
...
@@ -52,6 +53,8 @@ class TestWarnFilter(unittest.TestCase):
def
tearDown
(
self
):
warnings
.
filters
[:]
=
self
.
original_warning_filters
Products
.
__path__
=
[
d
for
d
in
Products
.
__path__
if
os
.
path
.
exists
(
d
)]
def
load_config_text
(
self
,
text
):
# We have to create a directory of our own since the existence
...
...
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