[pypy-commit] pypy py3.5: Creating more than one objspace in cpyext breaks the tests
rlamy
pypy.commits at gmail.com
Wed Jan 25 10:48:08 EST 2017
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r89766:2dff0146f6fa
Date: 2017-01-25 15:47 +0000
http://bitbucket.org/pypy/pypy/changeset/2dff0146f6fa/
Log: Creating more than one objspace in cpyext breaks the tests
diff --git a/pypy/module/cpyext/test/test_buffer.py b/pypy/module/cpyext/test/test_buffer.py
--- a/pypy/module/cpyext/test/test_buffer.py
+++ b/pypy/module/cpyext/test/test_buffer.py
@@ -1,9 +1,6 @@
from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
class AppTestMmap(AppTestCpythonExtensionBase):
- spaceconfig = {
- 'usemodules': (AppTestCpythonExtensionBase.spaceconfig['usemodules']
- + ['mmap'])}
def test_mmap_buffer(self):
module = self.import_extension('mmap_buffer', [
('isbuffer', 'METH_O',
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
@@ -87,7 +87,7 @@
class LeakCheckingTest(object):
"""Base class for all cpyext tests."""
spaceconfig = dict(usemodules=['cpyext', 'thread', 'struct', 'array',
- 'itertools', 'time', 'binascii',
+ 'itertools', 'time', 'binascii', 'mmap',
])
enable_leak_checking = True
More information about the pypy-commit
mailing list