Hi Yicong,

On 3 June 2015 at 05:37, Yicong Huang <hengha....@gmail.com> wrote:
> We tried to import the module in app level code, but failed.

That's how it is done in various modules.  See for example
pypy/module/_collections/app_defaultdict.  Maybe you wrote a test that
did you start with:

class AppTestTestAPI:
    spaceconfig = dict(usemodules=['modulename'])

which is needed, otherwise the test runs in a configuration in which
the module is not present.


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to