Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(122753)

Delta Between Two Patch Sets: Lib/test/test_zipfile.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_webbrowser.py ('k') | Lib/unittest/test/test_runner.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 import contextlib 1 import contextlib
2 import io 2 import io
3 import os 3 import os
4 import sys 4 import sys
5 import importlib.util 5 import importlib.util
6 import posixpath 6 import posixpath
7 import time 7 import time
8 import struct 8 import struct
9 import zipfile 9 import zipfile
10 import unittest 10 import unittest
(...skipping 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after
2083 def test_from_dir(self): 2083 def test_from_dir(self):
2084 dirpath = os.path.dirname(os.path.abspath(__file__)) 2084 dirpath = os.path.dirname(os.path.abspath(__file__))
2085 zi = zipfile.ZipInfo.from_file(dirpath, 'stdlib_tests') 2085 zi = zipfile.ZipInfo.from_file(dirpath, 'stdlib_tests')
2086 self.assertEqual(zi.filename, 'stdlib_tests/') 2086 self.assertEqual(zi.filename, 'stdlib_tests/')
2087 self.assertTrue(zi.is_dir()) 2087 self.assertTrue(zi.is_dir())
2088 self.assertEqual(zi.compress_type, zipfile.ZIP_STORED) 2088 self.assertEqual(zi.compress_type, zipfile.ZIP_STORED)
2089 self.assertEqual(zi.file_size, 0) 2089 self.assertEqual(zi.file_size, 0)
2090 2090
2091 if __name__ == "__main__": 2091 if __name__ == "__main__":
2092 unittest.main() 2092 unittest.main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+