small medium large xlarge

The latest version of the book is P2.0, released 7 months ago. If you've bought a PDF of the book and would like to update it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P2.0 (10-Apr-19)
#84845
PDF page: ?
Using online version: Ch 2: Writing Test Functions; Testing a package: Description given for installing package locally is insufficient. Having...more...
  • Reported in: P2.0 (09-Jan-19)
#84298
PDF page: 1
Paper page: 1

s/is a percentage inticator/is a percentage indicator/--StephenW

  • Reported in: P1.0 (02-Nov-18)
#83850
PDF page: 14
In the case of using the Windows platform, I ran into several issues while trying out the given session. Must be created the folder for the databas...more...
  • Reported in: P2.0 (01-Mar-19)
#84629
PDF page: 14
In the following fragment a line is printed two times: "$ pytest --ff --tb=no" START FRAGMENT --ff, --failed-first The --ff/--failed-first opti...more...
  • Reported in: P2.0 (20-May-19)
#85280
PDF page: 16-18
Unless I missed a step to modify test_four, mine doesn't fail from a fresh clone, only test_two has failures. So on pages 16 - 18 referring to test_fo...more...
  • Reported in: P2.0 (01-Mar-19)
#84630
PDF page: 17

Dangling E

--tb=style
...
... prints just the assert line and the E evaluated line with no context; ...--Joël

  • Reported in: P2.0 (03-Mar-19)
#84637
PDF page: 21

Found a small typo: 'parametrizing' should be 'parameterizing'.--Steve Schwarz

  • Reported in: P2.0 (03-Mar-19)
#84638
PDF page: 25
"There should be at most only one of these in your project" is a little redundant either: "There should be at most one of these in your project" or "...more...
  • Reported in: P2.0 (04-Feb-19)
#84465
PDF page: 25
This line lacks context: The test file, tests/unit/test_task.py, Suggest: s|The test file, tests/unit/test_task.py,|The test file, ch2/tasks_proj/t...more...
  • Reported in: P2.0 (03-Mar-19)
#84639
PDF page: 26
"The test_task.py file has this import statement: from tasks import Task The best way to allow the tests to be able to import tasks or from tasks im...more...
  • Reported in: P2.0 (21-Dec-18)
#84158
PDF page: 46

For parametrize class example, the second function "def test_valid_id" is not indented correctly--Dan

  • Reported in: P2.0 (10-Jun-19)
#85379
PDF page: 100
In file ch4/authors/conftest.py, the author_file_json function has a typo: """Demonstrate tmpdir_factory.""" import json import pytest @pyt...more...
  • Reported in: P2.0 (01-Apr-19)
#84812
PDF page: 118
“This works well for code you want to run at certain times, but tests don’t really depend on any system state or data from the fixture” We use auto...more...
  • Reported in: P2.0 (31-Mar-19)
#84811
PDF page: 140
“However, adding a custom command-line option and reading it from pytestconfig is common enough that I want to cover it here.” The texts some basic...more...