<div dir="ltr">Thanks Nanshu.<div><br></div><div>That does make the unit test output look like what I would expect.</div><div><br></div><div><div>Record #  1, ;180000FFEEDDCCBBAA0099887766554433221122334455667788990AFC</div><div>Record #  2, ;180218778E4017203C02A20C8E4217A2318E4017203C02A20E8E420717</div><div>Record #  3, ;180230EA65ED65EE85E9A204B5E995EACA10F938E999B0E8A5EB290FE8.</div><div>----------------------------------------------------------------------</div><div>Ran 1 test in 0.000s</div><div><br></div><div>OK</div></div><div><br></div><div>I've never had any issues like this with unit test before.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 10:02 PM, Nanshu Chen <span dir="ltr"><<a href="mailto:nanshu@gmail.com" target="_blank">nanshu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Add sys.stdout.flush() after your print, or replace print with sys.stderr.write.<br>
<div><div class="h5"><br>
<br>
<br>
On Tue, Oct 28, 2014 at 9:34 PM, Tony Cappellini <<a href="mailto:cappy2112@gmail.com">cappy2112@gmail.com</a>> wrote:<br>
>  Hello Everyone,<br>
><br>
><br>
> When I ran this unit test that I wrote<br>
><br>
> <a href="http://pastebin.com/YxZH4RHR" target="_blank">http://pastebin.com/YxZH4RHR</a><br>
><br>
> I'm seeing some very unusual output that I can't explain.<br>
><br>
> This is the output.<br>
><br>
> Record #  1, ;180000FFEEDDCCBBAA0099887766554433221122334455667788990AFC<br>
> Record #  2, ;180218778E4017203C02A20C8E4217A2318E4017203C02A20E8E420717<br>
> .<br>
> ----------------------------------------------------------------------<br>
> Ran 1 test in 0.000s<br>
><br>
> OK<br>
> Record #  3, ;180230EA65ED65EE85E9A204B5E995EACA10F938E999B0E8A5EB290FE8<br>
><br>
><br>
> I only have one test method defined at the moment.<br>
> It looks like two iterations are occurring as expected,<br>
> and the last occurs much later.<br>
><br>
> Why do all three iterations not happen before the unit test framework<br>
> displays "Ran 1 test in 0.000s" ?<br>
><br>
> Thanks<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Baypiggies mailing list<br>
> <a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
> To change your subscription options or unsubscribe:<br>
> <a href="https://mail.python.org/mailman/listinfo/baypiggies" target="_blank">https://mail.python.org/mailman/listinfo/baypiggies</a><br>
</blockquote></div><br></div>