[Python-checkins] r60529 - in python/trunk/Lib/test: output/test_cProfile test_cProfile.py test_cprofile.py

Christian Heimes lists at cheimes.de
Sun Feb 3 15:50:21 CET 2008


Brett Cannon wrote:
> But how is the situation going to be any better using unittest?

It's not. I preferred the old style output comparison test. In general
these tests suck but for profile and cprofile it made the job easier.

> The thing to remember about this, Christian, is that we had a high
> schooler do this. It was simpler to say, "take this output-comparing
> test and move to doctest", than to say, "come up with a completely new
> way to test this code using unittest". This at least gets us off of
> output-based testing for this. It can always be reworked later as a
> unittest if io.py ends up changing that often.

The student did as he was told to. IMHO the task was a mistake in the
first place. This particular test makes my job harder.

Christian


More information about the Python-checkins mailing list