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

Side by Side Diff: Lib/test/test_mailbox.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 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:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_logging.py ('k') | Lib/test/test_marshal.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import os 1 import os
2 import sys 2 import sys
3 import time 3 import time
4 import stat 4 import stat
5 import socket 5 import socket
6 import email 6 import email
7 import email.message 7 import email.message
8 import re 8 import re
9 import io 9 import io
10 import tempfile 10 import tempfile
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 orig_toc = self._box._toc 895 orig_toc = self._box._toc
896 def refreshed(): 896 def refreshed():
897 return self._box._toc is not orig_toc 897 return self._box._toc is not orig_toc
898 898
899 self._box._refresh() 899 self._box._refresh()
900 self.assertFalse(refreshed()) 900 self.assertFalse(refreshed())
901 901
902 # Now, write something into cur and remove it. This changes 902 # Now, write something into cur and remove it. This changes
903 # the mtime and should cause a re-read. 903 # the mtime and should cause a re-read.
904 filename = os.path.join(self._path, 'cur', 'stray-file') 904 filename = os.path.join(self._path, 'cur', 'stray-file')
905 support.create_empty_file(filename) 905 f = open(filename, 'w')
906 f.close()
906 os.unlink(filename) 907 os.unlink(filename)
907 self._box._refresh() 908 self._box._refresh()
908 self.assertTrue(refreshed()) 909 self.assertTrue(refreshed())
909 910
910 class _TestMboxMMDF(TestMailbox): 911 class _TestMboxMMDF(TestMailbox):
911 912
912 def tearDown(self): 913 def tearDown(self):
913 super().tearDown() 914 super().tearDown()
914 self._box.close() 915 self._box.close()
915 self._delete_recursively(self._path) 916 self._delete_recursively(self._path)
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 TestBabyl, TestMessage, TestMaildirMessage, TestMboxMessage, 2155 TestBabyl, TestMessage, TestMaildirMessage, TestMboxMessage,
2155 TestMHMessage, TestBabylMessage, TestMMDFMessage, 2156 TestMHMessage, TestBabylMessage, TestMMDFMessage,
2156 TestMessageConversion, TestProxyFile, TestPartialFile, 2157 TestMessageConversion, TestProxyFile, TestPartialFile,
2157 MaildirTestCase, TestFakeMailBox) 2158 MaildirTestCase, TestFakeMailBox)
2158 support.run_unittest(*tests) 2159 support.run_unittest(*tests)
2159 support.reap_children() 2160 support.reap_children()
2160 2161
2161 2162
2162 if __name__ == '__main__': 2163 if __name__ == '__main__':
2163 test_main() 2164 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_logging.py ('k') | Lib/test/test_marshal.py » ('j') | no next file with comments »

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