Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
c19bae1d
Commit
c19bae1d
authored
Mar 12, 2013
by
Albertas Agejevas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More trivial Py3 problems.
parent
f07858e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+8
-8
No files found.
src/ZEO/tests/testZEO.py
View file @
c19bae1d
...
...
@@ -1023,7 +1023,7 @@ def tpc_finish_error():
... def register_object(self, ob):
... pass
... def close(self):
... print
'connection closed'
... print
('connection closed')
... trigger = property(lambda self: self)
... pull_trigger = lambda self, func, *args: func(*args)
...
...
@@ -1045,25 +1045,25 @@ def tpc_finish_error():
... def endZeoVerify(self):
... self.conn.client.endVerify()
... def lastTransaction(self):
... return '\0'*8
... return
b
'\0'*8
... def tpc_begin(self, t, *args):
... if self.t is not None:
... raise TypeError('already trans')
... self.t = t
... print
'begin', args
... print
('begin', args)
... def vote(self, t):
... if self.t != t:
... raise TypeError('bad trans')
... print
'vote'
... print
('vote')
... def tpc_finish(self, *args):
... if self.should_fail:
... raise TypeError()
... print
'finish'
... print
('finish')
... def tpc_abort(self, t):
... if self.t != t:
... raise TypeError('bad trans')
... self.t = None
... print
'abort'
... print
('abort')
... def iterator_gc(*args):
... pass
...
...
@@ -1106,7 +1106,7 @@ def tpc_finish_error():
>>> cs._update_cache = lambda : None
>>> try: cs.tpc_finish(t2)
... except: pass
... else: print
"Should have failed"
... else: print
("Should have failed")
finish
connection closed
...
...
@@ -1146,7 +1146,7 @@ def client_has_newer_data_than_server():
>>> db.close()
>>> for record in handler.records[:5]:
... print
formatter.format(record
)
... print
(formatter.format(record)
)
... # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
ZEO.ClientStorage CRITICAL client
Client has seen newer transactions than server!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment