bslatkin / effectivepython

Effective Python: Second Edition — Source Code and Errata for the Book
https://effectivepython.com
2.2k stars 710 forks source link

Item 78: page 373, wrong cross-reference: says “see Item 76”, should be “see Item 77” #110

Open kirisakow opened 1 year ago

kirisakow commented 1 year ago

(2nd ed) See paragraph which starts with the words “patch works for many modules, ...”:

There is a wrong cross-reference:

in the setUp and tearDown methods of TestCase classes (see Item 76: “Verify Related Behaviors in TestCase Subclasses”).

which should be:

in the setUp and tearDown methods of TestCase classes (see Item 77: “Isolate Tests from Each Other with setUp, tearDown, setUpModule, and tearDownModule”).

bslatkin commented 1 month ago

Thank you for the report! I agree, that's the better reference.