Whitespace normalization.

This commit is contained in:
Tim Peters 2005-03-28 01:08:02 +00:00
parent 700f36c752
commit eba28bea9b
14 changed files with 28 additions and 30 deletions

View file

@ -321,7 +321,7 @@ def test_both():
f.close()
f = open(TESTFN, "rb+")
mf = mmap.mmap(f.fileno(), 0)
mf = mmap.mmap(f.fileno(), 0)
verify(len(mf) == 2**16, "Map size should equal file size.")
vereq(mf.read(2**16), 2**16 * "m")
mf.close()
@ -329,7 +329,7 @@ def test_both():
finally:
os.unlink(TESTFN)
# test mapping of entire file by passing 0 for map length
if hasattr(os, "stat"):
print " Ensuring that passing 0 as map length sets map size to current file size."
@ -337,17 +337,17 @@ def test_both():
try:
f.write(2**16 * 'm') # Arbitrary character
f.close()
f = open(TESTFN, "rb+")
mf = mmap.mmap(f.fileno(), 0)
mf = mmap.mmap(f.fileno(), 0)
verify(len(mf) == 2**16, "Map size should equal file size.")
vereq(mf.read(2**16), 2**16 * "m")
mf.close()
f.close()
finally:
os.unlink(TESTFN)
print ' Test passed'
test_both()