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
4d9871f6
Commit
4d9871f6
authored
Mar 13, 2013
by
Albertas Agejevas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one more test.
parent
d1cc4c6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/ZEO/tests/protocols.test
src/ZEO/tests/protocols.test
+8
-8
No files found.
src/ZEO/tests/protocols.test
View file @
4d9871f6
...
@@ -34,7 +34,7 @@ A current client should be able to connect to a old server:
...
@@ -34,7 +34,7 @@ A current client should be able to connect to a old server:
2
2
>>> conn.root()['
blob1
'] = ZODB.blob.Blob()
>>> conn.root()['
blob1
'] = ZODB.blob.Blob()
>>>
conn.root()['
blob1
'].open('
w
').write(
'
blob
data
1
')
>>>
r = conn.root()['
blob1
'].open('
w
').write(b
'
blob
data
1
')
>>> transaction.commit()
>>> transaction.commit()
>>> db2 = ZEO.DB(addr, blob_dir='
server
-
blobs
', shared_blob_dir=True)
>>> db2 = ZEO.DB(addr, blob_dir='
server
-
blobs
', shared_blob_dir=True)
...
@@ -44,7 +44,7 @@ A current client should be able to connect to a old server:
...
@@ -44,7 +44,7 @@ A current client should be able to connect to a old server:
... conn2.root().x += 1
... conn2.root().x += 1
... transaction.commit()
... transaction.commit()
>>> conn2.root()['
blob2
'] = ZODB.blob.Blob()
>>> conn2.root()['
blob2
'] = ZODB.blob.Blob()
>>>
conn2.root()['
blob2
'].open('
w
').write(
'
blob
data
2
')
>>>
r = conn2.root()['
blob2
'].open('
w
').write(b
'
blob
data
2
')
>>> transaction.commit()
>>> transaction.commit()
>>> @wait_until("Get the new data")
>>> @wait_until("Get the new data")
...
@@ -77,9 +77,9 @@ A current client should be able to connect to a old server:
...
@@ -77,9 +77,9 @@ A current client should be able to connect to a old server:
17
17
>>> conn.root()['
blob1
'].open().read()
>>> conn.root()['
blob1
'].open().read()
'
blob
data
1
'
b
'
blob
data
1
'
>>> conn.root()['
blob2
'].open().read()
>>> conn.root()['
blob2
'].open().read()
'
blob
data
2
'
b
'
blob
data
2
'
Note that when taking to a 3.8 server, iteration won'
t
work
:
Note that when taking to a 3.8 server, iteration won'
t
work
:
...
@@ -118,7 +118,7 @@ Note that we'll have to pull some hijinks:
...
@@ -118,7 +118,7 @@ Note that we'll have to pull some hijinks:
2
2
>>> conn.root()['
blob1
'] = ZODB.blob.Blob()
>>> conn.root()['
blob1
'] = ZODB.blob.Blob()
>>>
conn.root()['
blob1
'].open('
w
').write(
'
blob
data
1
')
>>>
r = conn.root()['
blob1
'].open('
w
').write(b
'
blob
data
1
')
>>> transaction.commit()
>>> transaction.commit()
>>> db2 = ZEO.DB(addr, blob_dir='
server
-
blobs
', shared_blob_dir=True)
>>> db2 = ZEO.DB(addr, blob_dir='
server
-
blobs
', shared_blob_dir=True)
...
@@ -128,7 +128,7 @@ Note that we'll have to pull some hijinks:
...
@@ -128,7 +128,7 @@ Note that we'll have to pull some hijinks:
... conn2.root().x += 1
... conn2.root().x += 1
... transaction.commit()
... transaction.commit()
>>> conn2.root()['
blob2
'] = ZODB.blob.Blob()
>>> conn2.root()['
blob2
'] = ZODB.blob.Blob()
>>>
conn2.root()['
blob2
'].open('
w
').write(
'
blob
data
2
')
>>>
r = conn2.root()['
blob2
'].open('
w
').write(b
'
blob
data
2
')
>>> transaction.commit()
>>> transaction.commit()
...
@@ -162,9 +162,9 @@ Note that we'll have to pull some hijinks:
...
@@ -162,9 +162,9 @@ Note that we'll have to pull some hijinks:
17
17
>>> conn.root()['
blob1
'].open().read()
>>> conn.root()['
blob1
'].open().read()
'
blob
data
1
'
b
'
blob
data
1
'
>>> conn.root()['
blob2
'].open().read()
>>> conn.root()['
blob2
'].open().read()
'
blob
data
2
'
b
'
blob
data
2
'
Make some old protocol calls:
Make some old protocol calls:
...
...
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