From f8ce7b22eec7275506adebf65eba4403a15990a5 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 21 Sep 2022 14:57:43 -0700 Subject: [PATCH] fix context manager to close, and properly handle closing... Minor fix is allowing to use pathlib w/ Archive as well.. This also adds a basic test to make sure these features aren't broken in the future.. --- fixtures/testfile.tar.gz | Bin 0 -> 178 bytes libarchive/__init__.py | 14 ++++++----- libarchive/tests.py | 49 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 fixtures/testfile.tar.gz create mode 100644 libarchive/tests.py diff --git a/fixtures/testfile.tar.gz b/fixtures/testfile.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2ccd6716f025391fe8b582b7dbe21b108130d995 GIT binary patch literal 178 zcmV;j08RfNiwFQ1p(bMh1MQT-4#FS|Ksoyr{Q_-Sf$!M?bVfZ$jefo$$-J1w!<;ep zg`_3)P*NTev!vk=^X3$