mirror of https://github.com/python/cpython
Mark Hammond: Ooops - even though Win32 handles the same args, there
was a superfluous check for the platform.
This commit is contained in:
parent
a7937e57f3
commit
706dbd03bd
|
@ -15,10 +15,7 @@ def test_both():
|
||||||
f.write('foo')
|
f.write('foo')
|
||||||
f.write('\0'* (PAGESIZE-3) )
|
f.write('\0'* (PAGESIZE-3) )
|
||||||
|
|
||||||
if sys.platform[:3]=="win":
|
m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
|
||||||
m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
|
|
||||||
else:
|
|
||||||
m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
|
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Simple sanity checks
|
# Simple sanity checks
|
||||||
|
|
Loading…
Reference in New Issue