Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:zSystems
python-libarchive-c
libarchive.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libarchive.patch of Package python-libarchive-c
From a56e9402c76c2fb9631651de7bae07b5fbb0b624 Mon Sep 17 00:00:00 2001 From: "Charly C." <changaco@changaco.oy.lc> Date: Sun, 29 Sep 2024 13:43:13 +0200 Subject: [PATCH] update a test failing with new libarchive versions (#131) fixes #130 --- tests/test_entry.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_entry.py b/tests/test_entry.py index 419cecb..34543a5 100644 --- a/tests/test_entry.py +++ b/tests/test_entry.py @@ -9,7 +9,7 @@ import pytest -from libarchive import memory_reader, memory_writer +from libarchive import ArchiveError, memory_reader, memory_writer from libarchive.entry import ArchiveEntry, ConsumedArchiveEntry, PassedArchiveEntry from . import data_dir, get_entries, get_tarinfos @@ -64,7 +64,13 @@ def test_check_ArchiveEntry_against_TarInfo(): def test_check_archiveentry_using_python_testtar(): - check_entries(join(data_dir, 'testtar.tar')) + # This test behaves differently depending on the libarchive version: + # 3.5, 3.6 and presumably all future versions reject the archive as damaged, + # whereas older versions accepted it. + try: + check_entries(join(data_dir, 'testtar.tar')) + except ArchiveError as e: + assert e.msg == "Damaged tar archive" def test_check_archiveentry_with_unicode_and_binary_entries_tar():
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor