diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-01-26 20:20:12 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-01-26 20:34:00 -0500 |
| commit | 5cd86987530892bfb01f68ad5f1a2b997a3d01e7 (patch) | |
| tree | d4070a1eb25cc8d046122dc585b77cf9f1ab0037 /setuptools/tests/test_build_clib.py | |
| parent | 050c0cbdd776ebed369de6c6d51bdc88fa16eadf (diff) | |
| download | python-setuptools-git-5cd86987530892bfb01f68ad5f1a2b997a3d01e7.tar.gz | |
Feed the hobgoblins (delint).
Diffstat (limited to 'setuptools/tests/test_build_clib.py')
| -rw-r--r-- | setuptools/tests/test_build_clib.py | 9 |
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 |
