I mentioned before that giving each test an individual file name does NOT help to resolve the issue. Still the latter modules are not (re)-loaded and do not trigger the
'raise Exception("bad")\n'
I wondered if python might not keep it's cache by path/filename but instead per-hash.
In which case since all have the very same content they would be the same for the module loader.
But using slightly changed content also did not resolve the issue.
I mentioned before that giving each test an individual file name does NOT help to resolve the issue. Still the latter modules are not (re)-loaded and do not trigger the
'raise Exception("bad")\n'
I wondered if python might not keep it's cache by path/filename but instead per-hash.
In which case since all have the very same content they would be the same for the module loader.
But using slightly changed content also did not resolve the issue.