]> granicus.if.org Git - python/commitdiff
Mark Hammond: Ooops - even though Win32 handles the same args, there
authorGuido van Rossum <guido@python.org>
Fri, 31 Mar 2000 01:20:33 +0000 (01:20 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 31 Mar 2000 01:20:33 +0000 (01:20 +0000)
was a superfluous check for the platform.

Lib/test/test_mmap.py

index b8ecbe7a7fcd29d05dc642fbd0041cb2c969d863..e932bec3b013b2258e64b6bb21ad4a77e1919f17 100644 (file)
@@ -15,10 +15,7 @@ def test_both():
     f.write('foo')
     f.write('\0'* (PAGESIZE-3) )
 
-    if sys.platform[:3]=="win":
-        m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
-    else:
-        m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
+    m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
     f.close()
     
     # Simple sanity checks