diff options
| author | Miro Hrončok <miro@hroncok.cz> | 2022-10-17 14:03:14 +0200 |
|---|---|---|
| committer | Miro Hrončok <miro@hroncok.cz> | 2022-10-17 14:12:46 +0200 |
| commit | c4b556166f9371d0cbc24d50dab83325aac77a3e (patch) | |
| tree | 3264a1d0e8b38074e19fda97f7223bbd345ed9e6 /setuptools/tests/test_build_clib.py | |
| parent | f07a248e1e58a76eac5069d8c07bdf81e981587d (diff) | |
| download | python-setuptools-git-c4b556166f9371d0cbc24d50dab83325aac77a3e.tar.gz | |
Consistently use unittest.mock in tests
- Some tests used unittest.mock from the standard library
- Some tests used mock from PyPI
- Some tests tried to import unittest.mock with a fallback to mock
(the import never fails on Python 3.7+, older Pythons are not supported)
Diffstat (limited to 'setuptools/tests/test_build_clib.py')
| -rw-r--r-- | setuptools/tests/test_build_clib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/tests/test_build_clib.py b/setuptools/tests/test_build_clib.py index 48bea2b4..af9e7c6d 100644 --- a/setuptools/tests/test_build_clib.py +++ b/setuptools/tests/test_build_clib.py @@ -1,6 +1,7 @@ +from unittest import mock + import pytest -import mock from distutils.errors import DistutilsSetupError from setuptools.command.build_clib import build_clib from setuptools.dist import Distribution |
