Author: Ronan Lamy <ronan.l...@gmail.com> Branch: multiphase Changeset: r91945:e2b16d8ae93f Date: 2017-07-20 18:02 +0200 http://bitbucket.org/pypy/pypy/changeset/e2b16d8ae93f/
Log: rename _testmultiphase to multiphase2, to avoid confusion with the CPython extension _testmultiphase diff --git a/pypy/module/cpyext/test/_testmultiphase.c b/pypy/module/cpyext/test/multiphase2.c rename from pypy/module/cpyext/test/_testmultiphase.c rename to pypy/module/cpyext/test/multiphase2.c --- a/pypy/module/cpyext/test/_testmultiphase.c +++ b/pypy/module/cpyext/test/multiphase2.c @@ -241,7 +241,7 @@ static PyModuleDef main_def = TEST_MODULE_DEF("main", main_slots, testexport_methods); PyMODINIT_FUNC -PyInit__testmultiphase(PyObject *spec) +PyInit_multiphase2(PyObject *spec) { return PyModuleDef_Init(&main_def); } diff --git a/pypy/module/cpyext/test/test_module.py b/pypy/module/cpyext/test/test_module.py --- a/pypy/module/cpyext/test/test_module.py +++ b/pypy/module/cpyext/test/test_module.py @@ -135,10 +135,10 @@ raises(SystemError, self.import_module, name='multiphase', body=body, init=init) - def test_module(self): + def test_basic(self): import sys from importlib import machinery, util - NAME = '_testmultiphase' + NAME = 'multiphase2' module = self.import_module(name=NAME) finder = machinery.FileFinder(None) spec = util.find_spec(NAME) @@ -152,7 +152,7 @@ def test_functionality(self): import types - NAME = '_testmultiphase' + NAME = 'multiphase2' module = self.import_module(name=NAME) assert isinstance(module, types.ModuleType) ex = module.Example() @@ -170,7 +170,7 @@ def test_reload(self): import importlib - NAME = '_testmultiphase' + NAME = 'multiphase2' module = self.import_module(name=NAME) ex_class = module.Example importlib.reload(module) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit