From 9846b0bb107a2d66f69337f8a3d8f518fbe56e52 Mon Sep 17 00:00:00 2001 From: czoido Date: Wed, 23 Oct 2024 12:03:48 +0200 Subject: [PATCH] wip --- test/unittests/util/output_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unittests/util/output_test.py b/test/unittests/util/output_test.py index 4c616dd9c90..4785ca32fd0 100644 --- a/test/unittests/util/output_test.py +++ b/test/unittests/util/output_test.py @@ -57,17 +57,17 @@ def test_unzip_output(self): @pytest.mark.skipif(platform.system() != "Windows", reason="Requires windows") def test_short_paths_unzip_output(self): tmp_dir = temp_folder() - file_path = os.path.join(tmp_dir, "src\\"*40, "example.txt") + file_path = os.path.join(tmp_dir, "src\\"*60, "example.txt") save(file_path, "Hello world!") zip_path = os.path.join(tmp_dir, 'example.zip') zipf = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) for root, _, files in os.walk(tmp_dir): for f in files: - zipf.write(os.path.join(root, f), os.path.join("src\\"*20, f)) + zipf.write(os.path.join(root, f), os.path.join("src\\"*40, f)) zipf.close() - output_dir = os.path.join(tmp_dir, "dst\\"*40, "output_dir") + output_dir = os.path.join(tmp_dir, "dst\\"*60, "output_dir") captured_output = RedirectedTestOutput() with redirect_output(captured_output): unzip(ConanFileMock(), zip_path, output_dir)