See the discussion starting at https://github.com/nedbat/coveragepy/issues/858#issuecomment-893819381