From 58e81fd7a262f0fbdcc29638a4f63f7e99191925 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Morin Date: Wed, 1 Jan 2025 22:10:51 -0500 Subject: [PATCH] Fix integration tests again Signed-off-by: Jean-Christophe Morin --- tests/test_integration.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 7f8db86..91ef46d 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -97,6 +97,7 @@ def test_installs( if platform.system() == "Windows": # https://stackoverflow.com/a/64706392 env["SYSTEMROOT"] = os.environ["SYSTEMROOT"] + # Needed for getpass.getuser to work on Windows. env["USERNAME"] = os.environ["USERNAME"] with capsys.disabled(): @@ -120,11 +121,8 @@ def test_installs( stderr=subprocess.PIPE, ) assert code == 0 - assert all( - [line.startswith(os.fspath(tmp_path)) for line in stdout.strip().split("\n")] - ) - for index, path in enumerate(stdout.strip().split("\n")): + for path in stdout.strip().split("\n"): assert path.startswith( os.fspath(tmp_path) ), f"{path!r} does not start with {os.fspath(tmp_path)!r}"