style: activate string normalization

This commit is contained in:
Henry Schreiner
2021-05-03 13:12:36 -04:00
committed by Henry Schreiner
parent d1900f6a05
commit bda76b21cb
54 changed files with 1598 additions and 1599 deletions
+9 -9
View File
@@ -7,26 +7,26 @@ from .test_projects import TestProject
so_file_project = TestProject()
so_file_project.files['libnothing.so'] = ''
so_file_project.files["libnothing.so"] = ""
so_file_project.files[
'setup.py'
] = '''
"setup.py"
] = """
raise Exception('this build will fail')
'''
"""
def test_failed_project_with_so_files(tmp_path, capfd):
if utils.platform != 'linux':
pytest.skip('this test is only relevant to the linux build')
if utils.platform != "linux":
pytest.skip("this test is only relevant to the linux build")
project_dir = tmp_path / 'project'
project_dir = tmp_path / "project"
so_file_project.generate(project_dir)
with pytest.raises(subprocess.CalledProcessError):
utils.cibuildwheel_run(project_dir)
captured = capfd.readouterr()
print('out', captured.out)
print('err', captured.err)
print("out", captured.out)
print("err", captured.err)
assert "NOTE: Shared object (.so) files found in this project." in captured.err