From ee77e3300f99313f7f9ba0865753ddd9d532ec3f Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Fri, 16 Feb 2024 15:39:52 +0000 Subject: [PATCH] tarfile.extractall without explicit filter is deprecated in python 3.12 --- src/tests/api/t_p5p.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/api/t_p5p.py b/src/tests/api/t_p5p.py index 3b9443a02..af4bd6338 100644 --- a/src/tests/api/t_p5p.py +++ b/src/tests/api/t_p5p.py @@ -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. @@ -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