Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-battery: pycodestyle #2128

Merged
merged 4 commits into from
Oct 31, 2017
Merged

Conversation

oliver-sanders
Copy link
Member

The python pep8 package has been renamed pycodestyle to avoid confusion.

This fixes t/syntax/00-lib.t which will fail with newer versions of pep8 due to a depreciation notice.

@oliver-sanders oliver-sanders added this to the next-release milestone Oct 25, 2017
@oliver-sanders oliver-sanders self-assigned this Oct 25, 2017
@matthewrmshin
Copy link
Member

(Would this work on our site?)

@oliver-sanders
Copy link
Member Author

No, hence I have left the pep8 test in for compatibility.

@@ -109,7 +109,7 @@ def index(self, *_):
"""Provide the index page."""
try:
return self._render()
except:
except (KeyError, AttributeError, jinja2.exceptions.TemplateError):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jinja2.exceptions.TemplateError might be sufficient here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely. The client will get a 500 in the worst case.

self.event_handler.contexts.get(uuid).handle.close()
except:
self.event_handler.contexts[uuid].handle.close()
except (KeyError, IOError, AttributeError):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly TypeError as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see how.

@oliver-sanders
Copy link
Member Author

./t/rose-suite-restart/02-basic.t fixed by #2123

@matthewrmshin
Copy link
Member

@stevewardle do you mind doing a sanity check for us?

@stevewardle
Copy link
Contributor

Looks perfectly reasonable to me

@matthewrmshin matthewrmshin merged commit 55fdaca into metomi:master Oct 31, 2017
@oliver-sanders oliver-sanders deleted the pycodestyle branch December 14, 2017 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants