Skip to content

Commit bfb35db

Browse files
committed
keep test code in sync with real implementation
1 parent e681ec6 commit bfb35db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/memorydb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ def __repr__(self):
259259
return '<memorydb instance at %x>'%id(self)
260260

261261
def storefile(self, classname, nodeid, property, content):
262+
if isinstance(content, str):
263+
content = s2b(content)
262264
self.tx_files[classname, nodeid, property] = content
263265
self.transactions.append((self.doStoreFile, (classname, nodeid,
264266
property)))

0 commit comments

Comments
 (0)