Test-Driven Dev. (Kent Beck) Python Chapter Question
Peter Hansen
peter at engcorp.com
Thu Jun 26 09:39:18 EDT 2003
More information about the Python-list mailing list
Thu Jun 26 09:39:18 EDT 2003
- Previous message (by thread): Test-Driven Dev. (Kent Beck) Python Chapter Question
- Next message (by thread): Test-Driven Dev. (Kent Beck) Python Chapter Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"yaipa h." wrote: > > In Chapter 20. Cleaning Up After > > When adding "tearDown()" to "TestCase" in xUnit, the TestCase method run() > suddenly takes on a new argument named "result." In the next line result > is used as "result.testStarted()." Oddly, when TestCase.run() is called by > "TestCaseTest" it is called without an argument, so of course Python complains. > If I drop "result" from the argument list and strike the line > "result.testStarted()" everything works fine. I've looked and > there seems to be no code download page or errata available. > > Anyone had similar problems with this chapter or am I reading over > something here? I think you're right. I looked ahead at page 114 and found what I think is the first place where run() actually takes a TestResult object, in a later chapter. It looks like this was an early mistake, as it appears even in the first draft of the book which had this chapter, from March 9 last year. (See http://groups.yahoo.com/group/testdrivendevelopment/files/ for ref.) Yaipa, if you submit this errata report on the testdrivendevelopment group on Yahoo Groups it would probably be appreciated. -Peter
- Previous message (by thread): Test-Driven Dev. (Kent Beck) Python Chapter Question
- Next message (by thread): Test-Driven Dev. (Kent Beck) Python Chapter Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list