Uh oh!
There was an error while loading. Please reload this page.
Allowing pyOpenSSL import to fail for GAE. - #1446
Conversation
theacodes
commented
Feb 11, 2016
@dhermes ping me when you're ready for review. |
dhermes
commented
Feb 11, 2016
I am "ready" for review. The AppVeyor fail is noted in #1434 IMO, the coverage drop just needs a pragma no cover. WDYT? |
theacodes
commented
Feb 11, 2016
I think it'd be nice to see a test case for this, if possible. |
dhermes
commented
Feb 12, 2016
@jonparrott I have previously implemented tests that mock import failures and the pay-off does not justify the amount that goes in. Maybe there is a better way and I just don't know how to do it? |
theacodes
commented
Feb 12, 2016
I guess I more want to ensure that |
dhermes
commented
Feb 12, 2016
OK cool I can add that feature and test for it. |
dhermes
commented
Feb 12, 2016
@jonparrott PTAL. (Also remind me to squash |
| return crypto.load_privatekey(crypto.FILETYPE_PEM, pem_text) | ||
| if crypto is None: | ||
| raise EnvironmentError('pyOpenSSL must be installed to load a ' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
theacodes
commented
Feb 12, 2016
LGTM with minor nits. You can squash commits if you want, but I don't see an issue with these being separate commits. |
dhermes
commented
Feb 12, 2016
@jonparrott PTAL |
| if not isinstance(string_to_sign, six.binary_type): | ||
| string_to_sign = string_to_sign.encode('utf-8') | ||
| if crypto is None: | ||
| raise EnvironmentError('pyOpenSSL must be installed to sign ' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
theacodes
commented
Feb 12, 2016
Good to go with the tiniest little nit. Feel free to merge once that's fixed and travis is happy. |
Allowing pyOpenSSL import to fail for GAE.
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
* docs: revise sample for nested schema * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * added TODO Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Fixes#1445.