Skip to content

Commit

Permalink
Make sure we pass text to note
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Nov 18, 2016
1 parent 4438aef commit df13013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ZEO/tests/Cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def checkUndoInvalidation(self):

# Now start an undo transaction
t = TransactionMetaData()
t.note('undo1')
t.note(u'undo1')
oids = self._begin_undos_vote(t, tid)

# Make sure this doesn't load invalid data into the cache
Expand Down
6 changes: 3 additions & 3 deletions src/ZEO/tests/InvalidationTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def doStep(self):
def commit(self):
cn = self.cn
key = self.startnum
self.tm.get().note("add key %s" % key)
self.tm.get().note(u"add key %s" % key)
try:
self.tm.get().commit()
except ConflictError as msg:
Expand Down Expand Up @@ -155,7 +155,7 @@ def _testrun(self):
while not self.stop.isSet():
try:
tree[key] = self.threadnum
tm.get().note("add key %s" % key)
tm.get().note(u"add key %s" % key)
tm.commit()
self.commitdict[self] = 1
if self.sleep:
Expand Down Expand Up @@ -218,7 +218,7 @@ def _testrun(self):
break
else:
# print("%d set #%d" % (self.threadnum, len(keys)))
transaction.get().note("keys %s" % ", ".join(map(str, keys)))
transaction.get().note(u"keys %s" % ", ".join(map(str, keys)))
try:
transaction.commit()
self.commitdict[self] = 1
Expand Down

0 comments on commit df13013

Please sign in to comment.