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

[WIP] Make AndroidDevice#build_info strictly returns a dict #924

Closed
wants to merge 1 commit into from

Conversation

mhaoli
Copy link
Collaborator

@mhaoli mhaoli commented Jun 7, 2024

Now AndroidDevice#build_info returns a None when in fastboot and a dict otherwise.

I'm not quite sure if we were intentionally returning a None when the device is in fastboot. But I think making it strictly return a dict looks more reliable. So users won't get errors like

"TypeError: 'NoneType' object is not subscriptable"

WDYT @xpconanfan ?


This change is Reviewable

@mhaoli mhaoli self-assigned this Jun 7, 2024
@mhaoli mhaoli added this to the Mobly Release 1.12.4 milestone Jun 7, 2024
@mhaoli mhaoli requested a review from xpconanfan June 7, 2024 03:56
@mhaoli
Copy link
Collaborator Author

mhaoli commented Jun 7, 2024

I can update docstring and other things if we agree this change makes sense.

@mhaoli mhaoli changed the title Make AndroidDevice#build_info strictly returns a dict [WIP] Make AndroidDevice#build_info strictly returns a dict Jun 7, 2024
@mhaoli mhaoli marked this pull request as draft June 7, 2024 04:20
@xpconanfan xpconanfan closed this Jun 7, 2024
@xpconanfan xpconanfan removed this from the Mobly Release 1.12.4 milestone Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants