-
-
Notifications
You must be signed in to change notification settings - Fork 128
"Errors should never pass silently" #27
base: master
Are you sure you want to change the base?
Conversation
@@ -224,7 +224,7 @@ def main(): | |||
if dpi and not dpi.isdigit(): | |||
usage('invalid DPI') | |||
sys.exit(1) | |||
if not imgfmt in {'png', 'svg'}: | |||
if imgfmt not in ('png', 'svg'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it restores compatibility with Python 2.6
Thanks for this commit. I wonder whether we should let the Travis CI build fail instead of adding the warning messages to the list of expected ones. This will give us a reminder that we need to fix these issues. What do you think? |
IMHO if we let the build red, it will not help for reviewing future PR.
|
OK. But who is going to fix it? Unfortunately, I don't know the code base good enough to do it myself. Michel |
It's not a new bug, it already lived in the Googlecode repository. Anyone interested can try it and propose a patch. |
Because github did not refresh the PR #27 diff, here is the web view: |
-edited- unrelated change moved to PR #29 |
I believe that this PR is ready for final review.
|
At a quick look it seems ok, but I am currently unable to test it. I would prefer if someone (other than the originator) tested it before commit. Otherwise I hope to get to it in the next week. |
I've rebased the changes on current |
+1 Looks good. All tests pass fine with Python 2.6 and 2.7 |
hello, any chance to get this merged? |
@florentx since its a reasonably large change I'd like to test it before committing, but I'm travelling with a tablet (so no git, asciidoc etc) so all I can do is press the github merge button. If anyone else (not the submitter :) can test then I can merge. |
@florentx It seems this repo will no longer accept PR as the latest release has been cut a while ago but https://github.com/asciidoc/asciidoc-py3 would. |
This pull request is based on the previous one #25. It improves the
testasciidoc.py
tool to report better the failures and the other warnings.I recommend to review and merge #25 before considering this one.
florentx/asciidoc@with-travis...compat26
When preparing PR #25 I discovered that the test suite is a bit too indulgent:
This PR addresses the above issues:
testasciidoc.conf
to declare the expected messages:% messages
I've chosen to add all the current warnings to the expected
% messages
, so the Travis-CI build is still green after the merge.However, we should challenge this in the future, and probably fix some tests.