Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
zodbtools
Commits
d37746c6
Commit
d37746c6
authored
Jan 09, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
analyze: always display processed tid range (even ø)
To keep a consistent output.
parent
5e2ed5e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
zodbtools/test/test_analyze.py
zodbtools/test/test_analyze.py
+2
-1
zodbtools/zodbanalyze.py
zodbtools/zodbanalyze.py
+1
-0
No files found.
zodbtools/test/test_analyze.py
View file @
d37746c6
# -*- coding: utf-8 -*-
# Copyright (C) 2019 Nexedi SA and Contributors.
#
# This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -69,5 +70,5 @@ __main__.Object,56,1880,54.366686%,33.571429,9,303,47,1577
csv
=
False
,
)
captured
=
capsys
.
readouterr
()
assert
"
No transactions processed
\
n
"
==
captured
.
out
assert
"
# ø
\
n
No transactions processed
\
n
"
==
captured
.
out
.
encode
(
'utf-8'
)
assert
captured
.
err
==
""
zodbtools/zodbanalyze.py
View file @
d37746c6
...
...
@@ -97,6 +97,7 @@ def report(rep, csv=False):
delta_fs
=
rep
.
delta_fs
if
not
csv
:
if
rep
.
TIDS
==
0
:
print
(
"# ø"
)
print
(
"No transactions processed"
)
return
...
...
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