Skip to content

Commit

Permalink
tarfile.extractall without explicit filter is deprecated in python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Feb 16, 2024
1 parent af13b6b commit ee77e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/api/t_p5p.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def test_04_extract(self):

# Extract all of the existing content.
arc = ptf.PkgTarFile(name=arc_path, mode="r")
arc.extractall(ext_dir)
arc.extractall(ext_dir, filter="tar")
arc.close()

# Create a new archive.
Expand Down Expand Up @@ -840,7 +840,7 @@ def add_entry(src):

# Extract all of the existing content.
arc = ptf.PkgTarFile(name=arc_path, mode="r")
arc.extractall(ext_dir)
arc.extractall(ext_dir, filter="tar")
arc.close()

# Now verify archive can still be used when index file
Expand Down

0 comments on commit ee77e33

Please sign in to comment.