Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #161

ANN: mock 0.7.2 released

From Fuzzyman <fuzzyman@gmail.com>
Newsgroups comp.lang.python.announce
Subject ANN: mock 0.7.2 released
Date 2011-05-30 13:26 -0700
Organization http://groups.google.com
Message-ID <mailman.2359.1306936082.9059.python-announce-list@python.org> (permalink)

Show all headers | View raw


There's a new minor release of mock, version 0.7.2, with two bugfixes
in it.

* http://pypi.python.org/pypi/mock/ (download)
* http://www.voidspace.org.uk/python/mock/ (documentation)
* https://code.google.com/p/mock/ (repo and issue tracker)

mock is a Python library for simple mocking and patching (replacing
objects with mocks during test runs). mock is designed for use with
unittest,
based on the "action -> assertion" pattern rather than "record ->
replay".

The full changelog for this release is:

http://www.voidspace.org.uk/python/mock/changelog.html#version-0-7-2

* BUGFIX: instances of list subclasses can now be used as mock specs
* BUGFIX: MagicMock equality / inequality protocol methods changed to
use the
  default equality / inequality. This is done through a `side_effect`
on
  the mocks used for `__eq__` / `__ne__`

The most important change is the second one, which fixes an oddity
with the way equality comparisons with MagicMock work(ed). For more
details on this change, and the motivation behind it, see this blog
entry:

http://www.voidspace.org.uk/python/weblog/arch_d7_2011_05_28.shtml#e1216

Michael Foord

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

ANN: mock 0.7.2 released Fuzzyman <fuzzyman@gmail.com> - 2011-05-30 13:26 -0700

csiph-web