[pypy-commit] pypy py3k: mmap is no longer a sequence type

pjenvey noreply at buildbot.pypy.org
Tue Mar 13 07:44:08 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r53421:f147803b6dc5
Date: 2012-03-12 23:43 -0700
http://bitbucket.org/pypy/pypy/changeset/f147803b6dc5/

Log:	mmap is no longer a sequence type

diff --git a/pypy/module/mmap/test/test_mmap.py b/pypy/module/mmap/test/test_mmap.py
--- a/pypy/module/mmap/test/test_mmap.py
+++ b/pypy/module/mmap/test/test_mmap.py
@@ -528,16 +528,6 @@
 
         f.close()
 
-    def test_sequence_type(self):
-        from mmap import mmap
-        f = open(self.tmpname + "x", "wb+")
-        f.write(b"foobar")
-        f.flush()
-        m = mmap(f.fileno(), 6)
-        import operator
-        assert operator.isSequenceType(m)
-        assert not operator.isMappingType(m)
-
     def test_buffer(self):
         from mmap import mmap
         f = open(self.tmpname + "y", "bw+")


More information about the pypy-commit mailing list