Skip to content

Commit

Permalink
Fix one more test.
Browse files Browse the repository at this point in the history
  • Loading branch information
alga committed Mar 13, 2013
1 parent d1cc4c6 commit 4d9871f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ZEO/tests/protocols.test
Expand Up @@ -34,7 +34,7 @@ A current client should be able to connect to a old server:
2

>>> 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()

>>> db2 = ZEO.DB(addr, blob_dir='server-blobs', shared_blob_dir=True)
Expand All @@ -44,7 +44,7 @@ A current client should be able to connect to a old server:
... conn2.root().x += 1
... transaction.commit()
>>> 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()

>>> @wait_until("Get the new data")
Expand Down Expand Up @@ -77,9 +77,9 @@ A current client should be able to connect to a old server:
17

>>> conn.root()['blob1'].open().read()
'blob data 1'
b'blob data 1'
>>> 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:

Expand Down Expand Up @@ -118,7 +118,7 @@ Note that we'll have to pull some hijinks:
2

>>> 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()

>>> db2 = ZEO.DB(addr, blob_dir='server-blobs', shared_blob_dir=True)
Expand All @@ -128,7 +128,7 @@ Note that we'll have to pull some hijinks:
... conn2.root().x += 1
... transaction.commit()
>>> 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()


Expand Down Expand Up @@ -162,9 +162,9 @@ Note that we'll have to pull some hijinks:
17

>>> conn.root()['blob1'].open().read()
'blob data 1'
b'blob data 1'
>>> conn.root()['blob2'].open().read()
'blob data 2'
b'blob data 2'

Make some old protocol calls:

Expand Down

0 comments on commit 4d9871f

Please sign in to comment.