style: activate string normalization
This commit is contained in:
committed by
Henry Schreiner
parent
d1900f6a05
commit
bda76b21cb
+10
-10
@@ -7,8 +7,8 @@ from . import utils
|
||||
|
||||
pure_python_project = test_projects.TestProject()
|
||||
pure_python_project.files[
|
||||
'setup.py'
|
||||
] = '''
|
||||
"setup.py"
|
||||
] = """
|
||||
from setuptools import Extension, setup
|
||||
|
||||
setup(
|
||||
@@ -16,27 +16,27 @@ setup(
|
||||
py_modules=['spam'],
|
||||
version="0.1.0",
|
||||
)
|
||||
'''
|
||||
"""
|
||||
|
||||
pure_python_project.files[
|
||||
'spam.py'
|
||||
] = '''
|
||||
"spam.py"
|
||||
] = """
|
||||
def a_function():
|
||||
pass
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
def test(tmp_path, capfd):
|
||||
# this test checks that if a pure wheel is generated, the build should
|
||||
# fail.
|
||||
project_dir = tmp_path / 'project'
|
||||
project_dir = tmp_path / "project"
|
||||
pure_python_project.generate(project_dir)
|
||||
|
||||
with pytest.raises(subprocess.CalledProcessError):
|
||||
actual_wheels = utils.cibuildwheel_run(project_dir)
|
||||
print('produced wheels:', actual_wheels)
|
||||
print("produced wheels:", actual_wheels)
|
||||
|
||||
captured = capfd.readouterr()
|
||||
print('out', captured.out)
|
||||
print('err', captured.err)
|
||||
print("out", captured.out)
|
||||
print("err", captured.err)
|
||||
assert "Build failed because a pure Python wheel was generated" in captured.err
|
||||
|
||||
Reference in New Issue
Block a user