Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

fix: Use unittest.mock if available #428

Closed
wants to merge 1 commit into from

Conversation

major
Copy link

@major major commented May 19, 2022

The mock module is deprecated in recent Python releases, so try to
import the standard unittest.mock library if it is available.

Signed-off-by: Major Hayden major@mhtx.net

Fixes #427 🦕

The `mock` module is deprecated in recent Python releases, so try to
import the standard `unittest.mock` library if it is available.

Signed-off-by: Major Hayden <major@mhtx.net>
@major major requested a review from a team as a code owner May 19, 2022 13:32
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: cloudasset Issues related to the googleapis/python-asset API. labels May 19, 2022
@parthea
Copy link
Contributor

parthea commented May 22, 2022

The issue has been addressed in googleapis/gapic-generator-python#1320 which is for the code generator that produces this client library. The code will be regenerated automatically this week.

@parthea parthea closed this May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudasset Issues related to the googleapis/python-asset API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use unittest.mock if available instead of the deprecated mock module
2 participants