From 154613dcb42e3c1f1747cfd542ac3d3d2c7723cd Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Sat, 21 Sep 2024 00:37:00 +0200 Subject: [PATCH] TST: fixing _that other_ windows issue... --- tests/test_torchfix.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_torchfix.py b/tests/test_torchfix.py index f48d11d..5abdb49 100644 --- a/tests/test_torchfix.py +++ b/tests/test_torchfix.py @@ -120,10 +120,11 @@ def test_stderr_suppression(tmp_path): text=True, check=False, ) + data_path = str(data_path).replace("\\", "\\\\") assert ( - result.stderr == f"Executing codemod...{os.linesep}" + result.stderr == f"Executing codemod...\n" f"Failed to determine module name for {data_path}: '{data_path}' is not in the " - f"subpath of '' OR one path is relative and the other is absolute.{os.linesep}" - f"Finished checking 1 files.{os.linesep}" - f"Transformed 1 files successfully.{os.linesep}" + f"subpath of '' OR one path is relative and the other is absolute.\n" + f"Finished checking 1 files.\n" + f"Transformed 1 files successfully.\n" )