<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">For some reason, on Python 3, it cannot consistently find othermodule,</div><div class="gmail_msg">because othermodule was not in the PYTHONPATH used when originally</div><div class="gmail_msg">starting buildbot.</div></div></blockquote><div>This one was quite interresting.</div><div>It looks like python3 added some optimization for the import method.</div><div>both tests are importing files from _trialtemp/configdir , but between the two tests, the list available modules actually change.</div><div>In the second test however, if you run from within the same python runtime, then python won't look again at the directory, and thus wont see it has changed since last time.</div><div>So it will not find the new module. If we change 'configdir' with mkstemp, then it will work.</div><div><br></div><div>I'll send a PR with a fix.</div><div><br></div><div>Pierre</div></div></div>