GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — tests(google-cloud-compute): subtle fix to compute system test test_zero_values by parthea · Pull Request #18089 · googleapis/google-cloud-python Conversation
Contributor
This PR updates the assertion to look for the core error substring instead, making the test robust to exception wrapping.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
parthea
marked this pull request as ready for review
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Code ReviewThis pull request simplifies the exception message assertion in the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
83
to
84
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the check for We should keep the conditional check but update the "0 has type int, but expected one of: bytes, unicode" if PROTOBUF_VERSION[0] == "3" else "bad argument type for built-in operation" ),
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
| "protobuf >= 6.33.5, < 8.0.0", |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ero_values (#18089) `test_zero_values` is failing in newer environments because `proto-plus` now wraps underlying `TypeErrors` in a more descriptive error message `(e.g., "Failed to set field...")` following #17682. This broke our rigid assertion which was looking for the exact raw tuple representation `('bad argument type for built-in operation',)`. This PR updates the assertion to look for the core error substring instead, making the test robust to exception wrapping.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.