<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 4:11 PM, Ram Rachum <span dir="ltr">&lt;<a href="mailto:ram@rachum.com">ram@rachum.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div dir="ltr"><div class="gmail_quote"><div class="im">On Wed, Oct 5, 2011 at 2:23 PM, Alex Pyattaev <span dir="ltr">&lt;<a href="mailto:alex.pyattaev@gmail.com" target="_blank">alex.pyattaev@gmail.com</a>&gt;</span> wrote:</div>

<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another option is to edit the sources of the test suite adding print<br>
statements incrementally until you spot the place where it crashes. It is a<br>
slow, but very reliable way. That is of course if it is a particular segment<br>
of python code that crashes it.<br></blockquote><div><br></div></div><div>I&#39;ll try, thanks.</div><div><br></div></div></div></blockquote><div><br></div><div>Okay, I&#39;ve spent a few hours print-debugging, and I think I&#39;ve almost got it.</div>

<div><br></div><div>The crash happens on a line:</div><div><br></div><div>    st = os.stat(s)</div><div><br></div><div>inside `os.path.isdir`, where `s` is a string &#39;C:\\Documents and Settings\\User\\My Documents\\Python Projects\\GarlicSim\\garlicsim\\src&#39;</div>

<div><br></div><div>This is a directory that happens not to exist, but of course this is not a good reason to crash.</div><div><br></div><div>I have tried running `os.stat(s)` in the PyPy shell with that same `s`, but didn&#39;t get a crash there. I don&#39;t know why it&#39;s crashing in Nose but not in the shell.</div>

<div><br></div><div><br></div><div>Does anyone have a clue?</div><div><br></div><div><br></div><div>Ram.</div></div><br></div>