summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2012-04-24 19:04:40 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2012-04-24 19:04:40 (GMT)
commit1ef9eda7bcddc494a250a6fb262c0dd3327dc443 (patch)
tree452e38c50f84bf64505d390a23984c8534a717a0 /Lib/test/test_tarfile.py
parentd11d0d6343b16f526c57ffd148a89548e0c6d681 (diff)
downloadcpython-1ef9eda7bcddc494a250a6fb262c0dd3327dc443.zip
cpython-1ef9eda7bcddc494a250a6fb262c0dd3327dc443.tar.gz
cpython-1ef9eda7bcddc494a250a6fb262c0dd3327dc443.tar.bz2
Issue #14160: TarFile.extractfile() failed to resolve symbolic links
when the links were not located in an archive subdirectory.
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r--Lib/test/test_tarfile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index 1757e44..f32eb8c 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -166,6 +166,9 @@ class UstarReadTest(ReadTest):
def test_fileobj_symlink2(self):
self._test_fileobj_link("./ustar/linktest2/symtype", "ustar/linktest1/regtype")
+ def test_issue14160(self):
+ self._test_fileobj_link("symtype2", "ustar/regtype")
+
class CommonReadTest(ReadTest):