clawpack/pyclaw — Issue #78: nosetests are not properly isolating loaded modules
Author: ahmadia
Created: 2011-10-18 07:34:04+00:00
State: open

This doesn't work as expected:

nosetests --with-id --with-isolation -v

It turns out that this issue is non-trivial:

http://stackoverflow.com/questions/437589/how-do-i-unload-reload-a-python-module

Many experts on StackOverflow recommend that you simply restart the interpreter. I am going to try caching the state of sys.modules and deleting everything 'new' between runs...