26 lines
807 B
Diff
26 lines
807 B
Diff
From ae4be5a235e8952c0d9ee4900f801ff78bce357a Mon Sep 17 00:00:00 2001
|
|
From: "Jason R. Coombs" <jaraco@jaraco.com>
|
|
Date: Sun, 7 Jul 2019 13:41:33 -0400
|
|
Subject: [PATCH] Add test capturing failure to traverse parent of a directory.
|
|
|
|
---
|
|
test_zipp.py | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/test_zipp.py b/test_zipp.py
|
|
index da68fea..3087cbc 100644
|
|
--- a/test_zipp.py
|
|
+++ b/test_zipp.py
|
|
@@ -170,3 +170,8 @@ class TestEverything(unittest.TestCase):
|
|
root = zipp.Path(zipfile_abcde)
|
|
assert (root / 'a').parent.at == ''
|
|
assert (root / 'a' / 'b').parent.at == 'a/'
|
|
+
|
|
+ def test_dir_parent(self):
|
|
+ for zipfile_abcde in self.zipfile_abcde():
|
|
+ root = zipp.Path(zipfile_abcde)
|
|
+ assert (root / 'b').parent.at == ''
|
|
--
|
|
2.33.0
|
|
|