Author: Richard Plangger <planri...@gmail.com> Branch: new-jit-log Changeset: r85813:b665a816a992 Date: 2016-07-22 11:50 +0200 http://bitbucket.org/pypy/pypy/changeset/b665a816a992/
Log: merge default 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 @@ -126,7 +126,14 @@ source_strings=source_strings, compile_extra=compile_extra, link_extra=link_extra) - return str(soname) + from imp import get_suffixes, C_EXTENSION + pydname = soname + for suffix, mode, typ in get_suffixes(): + if typ == C_EXTENSION: + pydname = soname.new(purebasename=modname, ext=suffix) + soname.rename(pydname) + break + return str(pydname) def freeze_refcnts(self): rawrefcount._dont_free_any_more() @@ -359,7 +366,11 @@ space.sys.get('modules'), space.wrap(name)) else: - return os.path.dirname(mod) + path = os.path.dirname(mod) + if self.runappdirect: + return path + else: + return space.wrap(path) @gateway.unwrap_spec(mod=str, name=str) def reimport_module(space, mod, name): diff --git a/pypy/module/cpyext/test/test_import.py b/pypy/module/cpyext/test/test_import.py --- a/pypy/module/cpyext/test/test_import.py +++ b/pypy/module/cpyext/test/test_import.py @@ -39,7 +39,6 @@ class AppTestImportLogic(AppTestCpythonExtensionBase): def test_import_logic(self): - skip("leak?") path = self.import_module(name='test_import_module', load_it=False) import sys sys.path.append(path) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit