github pytest-dev/pytest-mock v3.4.0
3.4.0 (2020-12-15)

latest releases: v3.14.0, v3.13.0, v3.12.0...
2 years ago
  • Add [mock.seal]{.title-ref} alias to the [mocker]{.title-ref} fixture (#211). Thanks @coiax for the PR.

  • Fixed spying on exceptions not covered by the Exception
    superclass (#215), like KeyboardInterrupt -- PR #216
    by @webknjaz.

    Before the fix, both spy_return and spy_exception
    were always assigned to None
    whenever such an exception happened. And after this fix,
    spy_exception is set to a correct value of an exception

Don't miss a new pytest-mock release

NewReleases is sending notifications on new releases.