File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- For Python versions that do not support PEP 706, pip will now raise an installation error for a
2
- source distribution when it includes a symlink that points outside the source distribution archive.
1
+ For Python versions that do not support PEP 706, pip will now raise an installation error for a
2
+ source distribution when it includes a symlink that points outside the source distribution archive.
Original file line number Diff line number Diff line change @@ -336,7 +336,10 @@ def test_unpack_evil_tar_link1_no_data_filter(
336
336
with pytest .raises (InstallationError ) as e :
337
337
untar_file (tar_filepath , extract_path )
338
338
339
- msg = "The tar file ({}) has a file ({}) trying to install outside target directory ({})"
339
+ msg = (
340
+ "The tar file ({}) has a file ({}) trying to install outside "
341
+ "target directory ({})"
342
+ )
340
343
assert msg .format (tar_filepath , "evil_symlink" , import_filepath ) in str (e .value )
341
344
342
345
assert not os .path .exists (os .path .join (extract_path , "evil_symlink" ))
@@ -370,7 +373,10 @@ def test_unpack_evil_tar_link2_no_data_filter(
370
373
with pytest .raises (InstallationError ) as e :
371
374
untar_file (tar_filepath , extract_path )
372
375
373
- msg = "The tar file ({}) has a file ({}) trying to install outside target directory ({})"
376
+ msg = (
377
+ "The tar file ({}) has a file ({}) trying to install outside "
378
+ "target directory ({})"
379
+ )
374
380
assert msg .format (tar_filepath , "evil_symlink" , link_path ) in str (e .value )
375
381
376
382
assert not os .path .exists (os .path .join (extract_path , "evil_symlink" ))
You can’t perform that action at this time.
0 commit comments