Commit 4d9871f6 authored by Albertas Agejevas's avatar Albertas Agejevas

Fix one more test.

parent d1cc4c6f
...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment