Skip to content

Commit bbe7cc7

Browse files
author
user
committed
Fix the Windows path issue in test cases.
1 parent 3e15824 commit bbe7cc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/test_utils_unpacking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ def test_unpack_evil_tar_link2_no_data_filter(
334334
untar_file(tar_filepath, extract_path)
335335

336336
assert "trying to install outside target directory" in str(e.value)
337-
assert ".." + os.sep + import_filename in str(e.value)
337+
assert ".." in str(e.value)
338+
assert import_filename in str(e.value)
338339

339340
assert not os.path.exists(os.path.join(extract_path, "evil_symlink"))
340341

0 commit comments

Comments
 (0)