From 69fe085ba3b88c220558f6e5a2347f2151fa52c0 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Wed, 15 Jul 2020 21:25:29 +0100 Subject: [PATCH] more back-slash hilarity --- test/test_environment.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_environment.py b/test/test_environment.py index 7f1c641c..3bcb6e3a 100644 --- a/test/test_environment.py +++ b/test/test_environment.py @@ -65,7 +65,9 @@ def test_overridden_path(tmp_path, capfd): (new_path / 'python').touch(mode=0o777) 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