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

Unified Diff: Lib/test/test_mmap.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_minidom.py ('k') | Lib/test/test_multiprocessing.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_mmap.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_mmap.py Mon Jul 25 09:47:18 2011 -0400
@@ -108,7 +108,7 @@
# Check that the underlying file is truncated too
# (bug #728515)
- f = open(TESTFN, 'rb')
+ f = open(TESTFN)
try:
f.seek(0, 2)
self.assertEqual(f.tell(), 512)
@@ -308,7 +308,7 @@
f.write(2**16 * b'a') # Arbitrary character
f.close()
- f = open(TESTFN, 'rb')
+ f = open(TESTFN)
mf = mmap.mmap(f.fileno(), 2**16, access=mmap.ACCESS_READ)
mf.close()
mf.close()
@@ -530,7 +530,7 @@
self.assertEqual(m[0:3], b'foo')
# Check that the underlying file is truncated too
- f = open(TESTFN, 'rb')
+ f = open(TESTFN)
f.seek(0, 2)
self.assertEqual(f.tell(), halfsize + 512)
f.close()
« no previous file with comments | « Lib/test/test_minidom.py ('k') | Lib/test/test_multiprocessing.py » ('j') | no next file with comments »

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