diff --git a/test/test_configoptions.py b/test/test_configoptions.py index 8eaf48e..52d203f 100644 --- a/test/test_configoptions.py +++ b/test/test_configoptions.py @@ -1,3 +1,4 @@ +import os from pathlib import Path from pprint import pprint @@ -596,7 +597,7 @@ def test_real_config_inherit_cross_cmake(): "cmake": { "build_type": "Release", "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "args": ["arg1", "arg2"], "env": { "foo": "bar" @@ -611,7 +612,7 @@ def test_real_config_inherit_cross_cmake(): "cmake": { "build_type": "RelWithDebInfo", "generator": "Unix Makefiles", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "args": ["arg1", "arg2", "arg3", "arg4"], "env": { "foo": "bar", @@ -623,7 +624,7 @@ def test_real_config_inherit_cross_cmake(): "cmake": { "build_type": "Release", "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "args": ["arg1", "arg2"], "env": { "foo": "bar" @@ -635,7 +636,7 @@ def test_real_config_inherit_cross_cmake(): "cmake": { "build_type": "Release", "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "args": ["arg1", "arg2"], "env": { "foo": "bar" @@ -647,7 +648,7 @@ def test_real_config_inherit_cross_cmake(): "cmake": { "build_type": "Release", "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "args": ["arg1", "arg2"], "env": { "foo": "bar" @@ -671,7 +672,7 @@ def test_real_config_inherit_cross_cmake(): "py-build-cmake": { "module": { "name": "foobar", - "directory": "/project", + "directory": os.path.normpath("/project"), }, "sdist": { "include": [], @@ -681,7 +682,7 @@ def test_real_config_inherit_cross_cmake(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -707,7 +708,7 @@ def test_real_config_inherit_cross_cmake(): "build_type": "RelWithDebInfo", "config": ["RelWithDebInfo"], "generator": "Unix Makefiles", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2", "arg3", "arg4"], @@ -730,7 +731,7 @@ def test_real_config_inherit_cross_cmake(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -752,7 +753,7 @@ def test_real_config_inherit_cross_cmake(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -774,7 +775,7 @@ def test_real_config_inherit_cross_cmake(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -842,7 +843,7 @@ def test_real_config_no_cross(): "py-build-cmake": { "module": { "name": "foobar", - "directory": "/project", + "directory": os.path.normpath("/project"), }, "sdist": { "include": [], @@ -852,7 +853,7 @@ def test_real_config_no_cross(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -873,7 +874,7 @@ def test_real_config_no_cross(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -895,7 +896,7 @@ def test_real_config_no_cross(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -917,7 +918,7 @@ def test_real_config_no_cross(): "build_type": "Release", "config": ["Release"], "generator": "Ninja", - "source_path": "/project/src", + "source_path": os.path.normpath("/project/src"), "build_path": ".py-build-cmake_cache", "options": {}, "args": ["arg1", "arg2"], @@ -965,7 +966,7 @@ def test_real_config_no_cmake(): "py-build-cmake": { "module": { "name": "foobar", - "directory": "/project", + "directory": os.path.normpath("/project"), }, "sdist": { "include": [], @@ -1030,7 +1031,7 @@ def test_real_config_local_override(): "py-build-cmake": { "module": { "name": "foobar", - "directory": "/project", + "directory": os.path.normpath("/project"), }, "sdist": { "include": ["somefile*"], @@ -1104,7 +1105,7 @@ def test_real_config_local_override_windows(): "py-build-cmake": { "module": { "name": "foobar", - "directory": "/project", + "directory": os.path.normpath("/project"), }, "sdist": { "include": [],