changeset 5465:c4f9a152258d

keep test code in sync with real implementation
author Christof Meerwald <cmeerw@cmeerw.org>
date Sat, 28 Jul 2018 20:21:59 +0100
parents 22eecc8a8bd4
children 09966de4d3f6
files test/memorydb.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/memorydb.py	Sat Jul 28 14:12:06 2018 +0100
+++ b/test/memorydb.py	Sat Jul 28 20:21:59 2018 +0100
@@ -259,6 +259,8 @@
         return '<memorydb instance at %x>'%id(self)
 
     def storefile(self, classname, nodeid, property, content):
+        if isinstance(content, str):
+            content = s2b(content)
         self.tx_files[classname, nodeid, property] = content
         self.transactions.append((self.doStoreFile, (classname, nodeid,
             property)))

Roundup Issue Tracker: http://roundup-tracker.org/