mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merge with 3.2.
This commit is contained in:
commit
74b6abf61f
3 changed files with 15 additions and 2 deletions
|
@ -1682,6 +1682,14 @@ class LinkEmulationTest(ReadTest):
|
|||
class GzipMiscReadTest(MiscReadTest):
|
||||
tarname = gzipname
|
||||
mode = "r:gz"
|
||||
|
||||
def test_non_existent_targz_file(self):
|
||||
# Test for issue11513: prevent non-existent gzipped tarfiles raising
|
||||
# multiple exceptions.
|
||||
with self.assertRaisesRegex(IOError, "xxx") as ex:
|
||||
tarfile.open("xxx", self.mode)
|
||||
self.assertEqual(ex.exception.errno, errno.ENOENT)
|
||||
|
||||
class GzipUstarReadTest(UstarReadTest):
|
||||
tarname = gzipname
|
||||
mode = "r:gz"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue