]> granicus.if.org Git - python/commitdiff
Removed print that executes only on Unix boxes; that made it impossible
authorTim Peters <tim.peters@gmail.com>
Tue, 13 Nov 2001 23:39:47 +0000 (23:39 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 13 Nov 2001 23:39:47 +0000 (23:39 +0000)
to have single "expected output" file.

Lib/test/test_mmap.py

index 6bb974eb8444ea1ecad44e77e6611f9b0ff73e3b..f3d1538f7efdb8565ef33e988ea039db42de894d 100644 (file)
@@ -229,8 +229,8 @@ def test_both():
             verify(0, "Invalid access code should have raised exception.")
 
         if os.name == "posix":
-            print "  Trying incompatible flags, prot and access parameters."
-            f=open(TESTFN, "r+b")
+            # Try incompatible flags, prot and access parameters.
+            f = open(TESTFN, "r+b")
             try:
                 m = mmap.mmap(f.fileno(), mapsize, flags=mmap.MAP_PRIVATE,
                               prot=mmap.PROT_READ, access=mmap.ACCESS_WRITE)