Skip to content

Commit b1b0656

Browse files
authored
[3.11] gh-91387: Fix tarfile test on WASI (GH-93984) (#94074)
Co-authored-by: Christian Heimes <christian@python.org>
1 parent 49687b0 commit b1b0656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def test_longname_directory(self):
10311031
os.mkdir(longdir)
10321032
tar.add(longdir)
10331033
finally:
1034-
os.rmdir(longdir)
1034+
os.rmdir(longdir.rstrip("/"))
10351035
with tarfile.open(tmpname) as tar:
10361036
self.assertIsNotNone(tar.getmember(longdir))
10371037
self.assertIsNotNone(tar.getmember(longdir.removesuffix('/')))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy