Skip to content

Commit 809fc3d

Browse files
committed
Revert environ copy
1 parent 0a68b15 commit 809fc3d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/integration/examples/test_conan_cmake.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,18 @@ def test_simple(example_runner: CliRunner) -> None:
3030
assert result.exit_code == 0, result.output
3131

3232
# Run the CMake configuration command
33-
cmake_result = subprocess.run(
34-
['cmake', '--preset=default'], capture_output=True, text=True, check=False, env=os.environ
35-
)
33+
cmake_result = subprocess.run(['cmake', '--preset=default'], capture_output=True, text=True, check=False)
3634

3735
assert cmake_result.returncode == 0, f'CMake configuration failed: {cmake_result.stderr}'
3836

3937
# Run the CMake build command
40-
build_result = subprocess.run(
41-
['cmake', '--build', 'build'], capture_output=True, text=True, check=False, env=os.environ
42-
)
38+
build_result = subprocess.run(['cmake', '--build', 'build'], capture_output=True, text=True, check=False)
4339

4440
assert build_result.returncode == 0, f'CMake build failed: {build_result.stderr}'
4541
assert 'Build finished successfully' in build_result.stdout, 'CMake build did not finish successfully'
4642

4743
# Execute the built program and verify the output
48-
program_result = subprocess.run(
49-
['build/HelloWorld'], capture_output=True, text=True, check=False, env=os.environ
50-
)
44+
program_result = subprocess.run(['build/HelloWorld'], capture_output=True, text=True, check=False)
5145

5246
assert program_result.returncode == 0, f'Program execution failed: {program_result.stderr}'
5347

0 commit comments

Comments
 (0)