Use load_module on the import hook to load the rewritten module. This allows the removal of the complicated code related to copying pyc files in and out of the cache location. It also plays more nicely with parallel py.test processes like the ones found in xdist. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| newinterpret.py | ||
| oldinterpret.py | ||
| reinterpret.py | ||
| rewrite.py | ||
| util.py | ||