-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix py2->3 string issues #675
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
Fix py2->3 string issues #675
Conversation
foozlevazquez
commented
Feb 21, 2015
- Handle exceptions with binary string content. Added test.
- Handle api_requests with binary content correctly in Python 3. Added test.
|
See #671 for the full gory history. |
|
@dhermes Can you help me understand why this is claiming no coverage, when it is being tested by these tests with and without binary strings? I'm hoping understanding that one will help me understand the other coverage failure. Thanks. |
It looks like you've got 2 branch misses. The line numbers are given, so hopefully they are easy to find. Typically a branch miss like this means in code like if foo == bar:
baz()
You can see this report by running |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
It's unclear which of these fixes were needed. There are only two uses of The auth issue should be fixed upstream in The only change here is one in WDYT? How did you determine these fixes were needed? (FWIW the |
|
I'm closing this out since it's being fixed upstream in |
Some resource references do not map to actual known resource types,
e.g. from the Logging API
string destination = 3 [
(google.api.resource_reference) = {
type: "*"
}
];
It's easiest to just ignore invalid resource types.
🤖 I have created a release \*beep\* \*boop\* --- ### [0.35.6](https://www.github.com/googleapis/gapic-generator-python/compare/v0.35.5...v0.35.6) (2020-10-20) ### Bug Fixes * unknown resources do not cause a generator crash ([#675](https://www.github.com/googleapis/gapic-generator-python/issues/675)) ([2d23d7d](https://www.github.com/googleapis/gapic-generator-python/commit/2d23d7d202099ccf145c01aeb9a03ae46b4e1b00)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
* feat: Add support for python 3.11 chore: Update gapic-generator-python to v1.8.0 PiperOrigin-RevId: 500768693 Source-Link: googleapis/googleapis@190b612 Source-Link: googleapis/googleapis-gen@7bf29a4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2JmMjlhNDE0YjllY2FjMzE3MGYwYjY1YmRjMmE5NTcwNWMwZWYxYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * require proto-plus 1.22.2 for python 3.11 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>