[Baypiggies] Unusual unit test behavior on OSX

Tony Cappellini cappy2112 at gmail.com
Wed Oct 29 06:07:42 CET 2014


Thanks Nanshu.

That does make the unit test output look like what I would expect.

Record #  1, ;180000FFEEDDCCBBAA0099887766554433221122334455667788990AFC
Record #  2, ;180218778E4017203C02A20C8E4217A2318E4017203C02A20E8E420717
Record #  3, ;180230EA65ED65EE85E9A204B5E995EACA10F938E999B0E8A5EB290FE8.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK

I've never had any issues like this with unit test before.


On Tue, Oct 28, 2014 at 10:02 PM, Nanshu Chen <nanshu at gmail.com> wrote:

> Add sys.stdout.flush() after your print, or replace print with
> sys.stderr.write.
>
>
>
> On Tue, Oct 28, 2014 at 9:34 PM, Tony Cappellini <cappy2112 at gmail.com>
> wrote:
> >  Hello Everyone,
> >
> >
> > When I ran this unit test that I wrote
> >
> > http://pastebin.com/YxZH4RHR
> >
> > I'm seeing some very unusual output that I can't explain.
> >
> > This is the output.
> >
> > Record #  1, ;180000FFEEDDCCBBAA0099887766554433221122334455667788990AFC
> > Record #  2, ;180218778E4017203C02A20C8E4217A2318E4017203C02A20E8E420717
> > .
> > ----------------------------------------------------------------------
> > Ran 1 test in 0.000s
> >
> > OK
> > Record #  3, ;180230EA65ED65EE85E9A204B5E995EACA10F938E999B0E8A5EB290FE8
> >
> >
> > I only have one test method defined at the moment.
> > It looks like two iterations are occurring as expected,
> > and the last occurs much later.
> >
> > Why do all three iterations not happen before the unit test framework
> > displays "Ran 1 test in 0.000s" ?
> >
> > Thanks
> >
> >
> > _______________________________________________
> > Baypiggies mailing list
> > Baypiggies at python.org
> > To change your subscription options or unsubscribe:
> > https://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20141028/b6d6734f/attachment.html>


More information about the Baypiggies mailing list