PEP 308: A PEP Writer's Experience - PRO

Tim Peters tim.one at comcast.net
Mon Feb 10 22:48:33 EST 2003


[Erik Max Francis]
> I sure wouldn't mind seeing
> 
> 	self.stream.writeln("Ran %d test%s in %.3fs" %
>                             (run, if run == 1: "" else: "s", timeTaken))

I like it best as

    self.stream.writeln("Ran %d in %.3fs" % (run, timeTaken))

It's unittest -- of course it's running tests <0.6 wink>.





More information about the Python-list mailing list