Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Oct 23, 2024
1 parent 8e96dfe commit 9846b0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittests/util/output_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9846b0b

Please sign in to comment.