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


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

ANN: mock 0.7.2 released

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <news@google.com>
X-Original-To python-announce@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:ANN': 0.02; 'subject:released': 0.03; 'fixes': 0.05; 'skip:` 10': 0.07; 'python': 0.08; 'url:pypi': 0.08; 'comparisons': 0.09; 'foord': 0.09; 'subclasses': 0.09; 'library': 0.15; 'bugfixes': 0.16; 'changelog': 0.16; 'entry:': 0.16; 'equality': 0.16; 'from:addr:fuzzyman': 0.16; 'oddity': 0.16; 'patching': 0.16; 'specs': 0.16; 'unittest,': 0.16; 'url:changelog': 0.16; 'url:voidspace': 0.16; 'protocol': 0.16; 'url:code': 0.17; 'objects': 0.23; 'changed': 0.25; 'version': 0.29; 'second': 0.30; 'pattern': 0.30; 'received:18': 0.30; 'received:mit.edu': 0.30; 'it.': 0.31; 'header:Received:8': 0.32; 'michael': 0.32; 'done': 0.32; 'minor': 0.32; 'header:X-Complaints-To:1': 0.32; 'list': 0.33; 'rather': 0.34; 'one,': 0.34; 'header:User-Agent:1': 0.35; 'change,': 0.35; 'instances': 0.35; 'test': 0.35; 'received:10.192.4': 0.36; 'received:10.192.4.9': 0.36; 'received:ywd9.prod.google.com': 0.36; 'received:google.com': 0.37; 'issue': 0.37; 'change': 0.37; 'received:209.85': 0.37; 'received:209.85.213': 0.37; 'two': 0.37; 'url:python': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'url:google': 0.38; 'received:prod.google.com': 0.39; 'received:10.192': 0.39; 'received:209': 0.39; 'header:Mime-Version:1': 0.39; 'more': 0.60; 'url:p': 0.63; 'full': 0.63; 'details': 0.64; 'designed': 0.65; 'to:addr:moderators.isc.org': 0.73; 'mock': 0.84; 'motivation': 0.91
Delivered-To comp-lang-python-announce@moderators.isc.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:x-authentication-warning:to:path:from :newsgroups:subject:date:organization:lines:message-id :nntp-posting-host:mime-version:content-type:x-trace:x-complaints-to :nntp-posting-date:complaints-to:injection-info:user-agent :x-google-web-client:x-google-header-order:x-http-useragent; bh=Yv/ForH/GDfUcR4OF7QMgDWga5GKwsi4Bt8lvg4UdTw=; b=vAcIzmYlvzkq7Rb9u3+OJz03nTtAkMHYQ6PH7xaGTx3/ijwz0ASFYd5w8597mVsR4y 2uoDXejbTCBn8aE3AHVKhGGWI59mSykukt99UUI5D4csiKKPycV1vZlVxl6tiS8wGUGM vublbz9E9Hlq3rWHnfNNgVO0xPlqGSG+mGLos=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:to:path:from:newsgroups:subject:date :organization:lines:message-id:nntp-posting-host:mime-version :content-type:x-trace:x-complaints-to:nntp-posting-date :complaints-to:injection-info:user-agent:x-google-web-client :x-google-header-order:x-http-useragent; b=R3B5ouIv+9i4kFNZVB6ITR6hx83t8Qcmj3LwJucDY+3U9qFyE4vNKPVAPAX/AUB0ps WnNTRphjbyw7q9K4aUdSEUjeet6mYlv/HHJyjIvt9+DruFkUIv+JCzJj9NSJrHyrjYl/ Lj0vnA/J9KVe6DSLF8zERiled32sVKmqmPUgU=
X-Authentication-Warning ywd9.prod.google.com: news set sender to news@google.com using -f
To comp-lang-python-announce@moderators.isc.org
From Fuzzyman <fuzzyman@gmail.com>
Newsgroups comp.lang.python.announce
Subject ANN: mock 0.7.2 released
Date Mon, 30 May 2011 13:26:50 -0700 (PDT)
Organization http://groups.google.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Complaints-To groups-abuse@google.com
Injection-Info b1g2000yql.googlegroups.com; posting-host=87.194.212.65; posting-account=rJGH6woAAAA8aYshsH3bwEcz-guIOP6p
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HNKRUAELSC
X-HTTP-UserAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24, gzip(gfe)
X-Mailman-Approved-At Wed, 01 Jun 2011 15:48:00 +0200
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Message-ID <mailman.2359.1306936082.9059.python-announce-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 82.94.164.166
X-Trace 1306936082 news.xs4all.nl 49174 [::ffff:82.94.164.166]:34178
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python.announce:161

Show key headers only | 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