Skip to content

Conversation

@meaksh
Copy link
Member

@meaksh meaksh commented Oct 9, 2023

What does this PR do?

This PR simply removes the usage of mock in favor of unittest.mock (standard library), as after Salt dropping support for Python 3.6, there is no need to keep using mock library at the time of testing.

Additionally, it removes the import of __version__ (an unused __mock_version), as this attribute was dropped and not available in Python 3.9+ (python/cpython#17977)


This PR backports saltstack/salt#65364 to openSUSE/release/3006.0 branch.

Commits signed with GPG?

Yes

@meaksh meaksh force-pushed the openSUSE/fix/3006.0-remove-mock branch from 91e9b67 to 536371f Compare October 9, 2023 14:39
@meaksh
Copy link
Member Author

meaksh commented Nov 13, 2023

We cannot yet replace mock in favor of unittest.mock yet, as tests are aligned with latest mock version functionality (not available in Python 3.6 unittest.mock`.

Closing this PR without merging for now.

@meaksh meaksh closed this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants