Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
166c5b76
Commit
166c5b76
authored
Feb 28, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moar resource leak patchage.
parent
79bcc422
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
src/ZODB/tests/testConfig.py
src/ZODB/tests/testConfig.py
+19
-19
No files found.
src/ZODB/tests/testConfig.py
View file @
166c5b76
...
@@ -61,7 +61,7 @@ class ZODBConfigTest(ConfigTestBase):
...
@@ -61,7 +61,7 @@ class ZODBConfigTest(ConfigTestBase):
"""
)
"""
)
def
test_file_config1
(
self
):
def
test_file_config1
(
self
):
path
=
tempfile
.
mktemp
()
with
tempfile
.
NamedTemporaryFile
(
prefix
=
'Cfg'
)
as
f
:
self
.
_test
(
self
.
_test
(
"""
"""
<zodb>
<zodb>
...
@@ -69,10 +69,10 @@ class ZODBConfigTest(ConfigTestBase):
...
@@ -69,10 +69,10 @@ class ZODBConfigTest(ConfigTestBase):
path %s
path %s
</filestorage>
</filestorage>
</zodb>
</zodb>
"""
%
path
)
"""
%
f
.
name
)
def
test_file_config2
(
self
):
def
test_file_config2
(
self
):
path
=
tempfile
.
mktemp
()
with
tempfile
.
NamedTemporaryFile
(
prefix
=
'Cfg'
)
as
f
:
cfg
=
"""
cfg
=
"""
<zodb>
<zodb>
<filestorage>
<filestorage>
...
@@ -81,7 +81,7 @@ class ZODBConfigTest(ConfigTestBase):
...
@@ -81,7 +81,7 @@ class ZODBConfigTest(ConfigTestBase):
read-only true
read-only true
</filestorage>
</filestorage>
</zodb>
</zodb>
"""
%
path
"""
%
f
.
name
self
.
assertRaises
(
ReadOnlyError
,
self
.
_test
,
cfg
)
self
.
assertRaises
(
ReadOnlyError
,
self
.
_test
,
cfg
)
def
test_demo_config
(
self
):
def
test_demo_config
(
self
):
...
...
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