[pypy-commit] pypy cpyext-old-buffers: Add mmap to modules for cpyext extension tests.

devin.jeanpierre pypy.commits at gmail.com
Mon May 16 16:58:55 EDT 2016


Author: Devin Jeanpierre <jeanpierreda at gmail.com>
Branch: cpyext-old-buffers
Changeset: r84493:1afee199f442
Date: 2016-05-13 15:16 -0700
http://bitbucket.org/pypy/pypy/changeset/1afee199f442/

Log:	Add mmap to modules for cpyext extension tests.

diff --git a/pypy/module/cpyext/test/test_abstract.py b/pypy/module/cpyext/test/test_abstract.py
--- a/pypy/module/cpyext/test/test_abstract.py
+++ b/pypy/module/cpyext/test/test_abstract.py
@@ -3,10 +3,6 @@
 
 class AppTestBufferProtocol(AppTestCpythonExtensionBase):
     """Tests for the old buffer protocol."""
-    spaceconfig = AppTestCpythonExtensionBase.spaceconfig.copy()
-    # Also allow mmap to be importable.
-    # XXX: this breaks all tests that run afterward! Not sure why yet.
-    # spaceconfig['usemodules'] = list(spaceconfig['usemodules']) + ['mmap']
 
     def w_get_buffer_support(self):
         return self.import_extension('buffer_support', [
diff --git a/pypy/module/cpyext/test/test_cpyext.py b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -136,7 +136,7 @@
     """Base class for all cpyext tests."""
     spaceconfig = dict(usemodules=['cpyext', 'thread', '_rawffi', 'array',
                                    'itertools', 'time', 'binascii',
-                                   'micronumpy',
+                                   'micronumpy', 'mmap'
                                    ])
 
     enable_leak_checking = True


More information about the pypy-commit mailing list