Skip to content

Commit 60298c8

Browse files
committed
Attempt to fix state leak that's breaking Windows
1 parent a2024b2 commit 60298c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/functional/test_configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ def test_global_config_file(self, script: PipTestEnvironment) -> None:
146146
result = script.pip("config", "debug")
147147
assert f"{global_config_file}, exists:" in result.stdout
148148

149+
# Avoid state leaking for tests reusing the new config file
150+
os.remove(global_config_file)
151+
149152
def test_editor_does_not_exist(self, script: PipTestEnvironment) -> None:
150153
"""Ensure that FileNotFoundError sets filename correctly"""
151154
result = script.pip(

0 commit comments

Comments
 (0)