Commit d4f2552e authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Add test case for bug #1017553

parent 910b282f
......@@ -327,6 +327,14 @@ class WriteTestGzip(WriteTest):
class WriteStreamTestGzip(WriteStreamTest):
comp = "gz"
# Filemode test cases
class FileModeTest(unittest.TestCase):
def test_modes(self):
self.assertEqual(tarfile.filemode(0755), '-rwxr-xr-x')
self.assertEqual(tarfile.filemode(07111), '---s--s--t')
if bz2:
# Bzip2 TestCases
class ReadTestBzip2(ReadTestGzip):
......@@ -354,6 +362,7 @@ def test_main():
bz2.BZ2File(tarname("bz2"), "wb").write(file(tarname(), "rb").read())
tests = [
FileModeTest,
ReadTest,
ReadStreamTest,
WriteTest,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment