aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_build_clib.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-12-29 12:47:31 -0500
committerJason R. Coombs <jaraco@jaraco.com>2019-12-29 12:47:31 -0500
commita5b66a8581b758aff763765857359ef540631202 (patch)
tree9404571514fbe550c98a939bd4458d97e1bf1dd2 /setuptools/tests/test_build_clib.py
parentd53e024af2f5d8f3a4a36588c3dc004d156bc830 (diff)
parente6bdf25f6ab5bf4d32b0f9affa0ab98ea35f3a29 (diff)
downloadexternal_python_setuptools-a5b66a8581b758aff763765857359ef540631202.tar.gz
external_python_setuptools-a5b66a8581b758aff763765857359ef540631202.tar.bz2
external_python_setuptools-a5b66a8581b758aff763765857359ef540631202.zip
Merge branch 'master' into feature/include-pyproject.toml
Diffstat (limited to 'setuptools/tests/test_build_clib.py')
-rw-r--r--setuptools/tests/test_build_clib.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/setuptools/tests/test_build_clib.py b/setuptools/tests/test_build_clib.py
index aebcc350..3779e679 100644
--- a/setuptools/tests/test_build_clib.py
+++ b/setuptools/tests/test_build_clib.py
@@ -1,6 +1,4 @@
import pytest
-import os
-import shutil
import mock
from distutils.errors import DistutilsSetupError
@@ -40,13 +38,14 @@ class TestBuildCLib:
# with that out of the way, let's see if the crude dependency
# system works
cmd.compiler = mock.MagicMock(spec=cmd.compiler)
- mock_newer.return_value = ([],[])
+ mock_newer.return_value = ([], [])
obj_deps = {'': ('global.h',), 'example.c': ('example.h',)}
- libs = [('example', {'sources': ['example.c'] ,'obj_deps': obj_deps})]
+ libs = [('example', {'sources': ['example.c'], 'obj_deps': obj_deps})]
cmd.build_libraries(libs)
- assert [['example.c', 'global.h', 'example.h']] in mock_newer.call_args[0]
+ assert [['example.c', 'global.h', 'example.h']] in \
+ mock_newer.call_args[0]
assert not cmd.compiler.compile.called
assert cmd.compiler.create_static_lib.call_count == 1