Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
ee4514ce
Commit
ee4514ce
authored
May 22, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix zdoptions.test and dynamic_server_ports.test under PyPy by closing the files.
parent
68b48d4b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
src/ZEO/tests/dynamic_server_ports.test
src/ZEO/tests/dynamic_server_ports.test
+2
-2
src/ZEO/tests/zdoptions.test
src/ZEO/tests/zdoptions.test
+17
-11
No files found.
src/ZEO/tests/dynamic_server_ports.test
View file @
ee4514ce
...
...
@@ -82,7 +82,8 @@ dynamic port using ZConfig, you'd use a hostname by itself. In this
case, ZConfig passes None as the port.
>>> import ZEO.runzeo
>>> r = open('
conf
', '
w
').write("""
>>> with open('
conf
', '
w
') as f:
... _ = f.write("""
... <zeo>
... address 127.0.0.1
... </zeo>
...
...
@@ -103,4 +104,3 @@ case, ZConfig passes None as the port.
..
cleanup
>>>
ZODB
.
event
.
notify
=
old_notify
src/ZEO/tests/zdoptions.test
View file @
ee4514ce
...
...
@@ -16,7 +16,8 @@ It is an error not to specify any storages:
...
from
io
import
StringIO
>>>
stderr
=
sys
.
stderr
>>>
r
=
open
(
'config'
,
'w'
)
.
write
(
"""
>>>
with
open
(
'config'
,
'w'
)
as
f
:
...
_
=
f
.
write
(
"""
... <zeo>
... address 8100
... </zeo>
...
...
@@ -37,7 +38,8 @@ It is an error not to specify any storages:
But
we
can
specify
a
storage
without
a
name
:
>>>
r
=
open
(
'config'
,
'w'
)
.
write
(
"""
>>>
with
open
(
'config'
,
'w'
)
as
f
:
...
_
=
f
.
write
(
"""
... <zeo>
... address 8100
... </zeo>
...
...
@@ -52,7 +54,8 @@ But we can specify a storage without a name:
We
can
't have multiple unnamed storages:
>>> sys.stderr = StringIO()
>>> r = open('
config
', '
w
').write("""
>>> with open('
config
', '
w
') as f:
... _ = f.write("""
... <zeo>
... address 8100
... </zeo>
...
...
@@ -74,7 +77,8 @@ We can't have multiple unnamed storages:
Or an unnamed storage and one named '
1
':
>>> sys.stderr = StringIO()
>>> r = open('
config
', '
w
').write("""
>>> with open('
config
', '
w
') as f:
... _ = f.write("""
... <zeo>
... address 8100
... </zeo>
...
...
@@ -95,7 +99,8 @@ Or an unnamed storage and one named '1':
But
we
can
have
multiple
storages
:
>>>
r
=
open
(
'config'
,
'w'
)
.
write
(
"""
>>>
with
open
(
'config'
,
'w'
)
as
f
:
...
_
=
f
.
write
(
"""
... <zeo>
... address 8100
... </zeo>
...
...
@@ -112,7 +117,8 @@ But we can have multiple storages:
As
long
as
the
names
are
unique
:
>>>
sys
.
stderr
=
StringIO
()
>>>
r
=
open
(
'config'
,
'w'
)
.
write
(
"""
>>>
with
open
(
'config'
,
'w'
)
as
f
:
...
f
.
write
(
"""
... <zeo>
... address 8100
... </zeo>
...
...
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