summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2012-04-24 20:42:08 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2012-04-24 20:42:08 (GMT)
commit231d474a7b1747d22c383802473fb15b549f22cb (patch)
treed8f44fb9c4b3b0f9db2e704010ce9e641a57f619 /Lib/test/test_tarfile.py
parent13c598b1d862b7f7f7359671e3944e81882b19b1 (diff)
downloadcpython-231d474a7b1747d22c383802473fb15b549f22cb.zip
cpython-231d474a7b1747d22c383802473fb15b549f22cb.tar.gz
cpython-231d474a7b1747d22c383802473fb15b549f22cb.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 d5b864e..a3685ea 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -154,6 +154,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):