more back-slash hilarity
This commit is contained in:
@@ -65,7 +65,9 @@ def test_overridden_path(tmp_path, capfd):
|
|||||||
(new_path / 'python').touch(mode=0o777)
|
(new_path / 'python').touch(mode=0o777)
|
||||||
|
|
||||||
utils.cibuildwheel_run(project_dir, output_dir=output_dir, add_env={
|
utils.cibuildwheel_run(project_dir, output_dir=output_dir, add_env={
|
||||||
'CIBW_ENVIRONMENT': f'''PATH="{new_path}{os.pathsep}$PATH"''',
|
# use single-quotes for new_path, because on windows, paths with backslashes
|
||||||
|
# are interpreted by bash as escape sequences!
|
||||||
|
'CIBW_ENVIRONMENT': f'''PATH='{new_path}'{os.pathsep}"$PATH"''',
|
||||||
})
|
})
|
||||||
|
|
||||||
assert len(os.listdir(output_dir)) == 0
|
assert len(os.listdir(output_dir)) == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user