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

Use Python standard library in preference to external modules #87

Merged
merged 2 commits into from
Oct 28, 2021

Conversation

smcv
Copy link
Contributor

@smcv smcv commented Oct 28, 2021

  • tests: Use unittest.mock from Python standard library if possible

    This avoids an unnecessary external dependency when using Python >= 3.3.

  • tests: Try to use TemporaryDirectory from Python standard library

    This avoids an unnecessary external dependency with Python >= 3.2.

Copy link
Contributor

@dedekind dedekind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend adding few commentaries, otherwise looks good, thanks.

tests/test_bmap_helpers.py Outdated Show resolved Hide resolved
tests/test_bmap_helpers.py Outdated Show resolved Hide resolved
This avoids an unnecessary external dependency when using Python >= 3.3.

Signed-off-by: Simon McVittie <smcv@debian.org>
This avoids an unnecessary external dependency with Python >= 3.2.

Signed-off-by: Simon McVittie <smcv@debian.org>
@smcv smcv merged commit 0ce72af into intel:master Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants