Mercurial > hg
diff tests/test-merge5.t @ 27536:f7d890bc5e01
demandimport: add support for PyPy
PyPy's implementation of __import__ differs subtly from that of CPython.
If invoked without a name or fromlist, it throws an ImportError,
whereas CPython returns a reference to the level-appropriate importing
package.
Here, we achieve the same behaviour by hand.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 23 Dec 2015 16:22:20 -0800 |
parents | fe80fdf68ba7 |
children | 72072cfc7e91 |