Mocker 1.0

Milestone information

Project:
Mocker
Series:
trunk
Version:
1.0
Released:
 
Registrant:
Gustavo Niemeyer
Release registered:
Active:
Yes. Drivers can target bugs and blueprints to this milestone.  

Download RDF metadata

Activities

Assigned to you:
No blueprints or bugs assigned to you.
Assignees:
No users assigned to blueprints and bugs.
Blueprints:
No blueprints are targeted to this milestone.
Bugs:
No bugs are targeted to this milestone.

Download files for this release

After you've downloaded a file, you can verify its authenticity using its MD5 sum or signature. (How do I verify a download?)

File Description Downloads
download icon mocker-1.0.tar.bz2 (md5) Source 3,221
last downloaded 15 weeks ago
Total downloads: 3,221

Release notes 

This release does not have release notes.

Changelog 

View the full changelog

- Changed license to BSD, since the PSF license only applies to Python
  itself (#583335).

- Unwrap bound methods on replace() and proxy(), as suggested
  by James Henstridge (#270782).

- MockerTestCase.assertRaises() will now return the exception raised,
  allowing further inspection of the raised exception (implemented by
  Thomas Hervé) (#299930).

- Fixed support for Python 2.6. Mocking of iterators was broken in
  certain cases because, even though that's *not* documented, Python
  tries to use __length_hint__ in some cases.

- Fixed support for MockerTestCase.addCleanup() in Python 2.3,
  by Anders F Björklund (#528657).

- Implemented Expect helper, which allows creating a new expect()
  "function" with an explicitly provided Mocker instance. This
  helps in cases where the expression can't result in a Mock
  instance (e.g. expect(iter(mock))) (#196388, #179072).

- __nonzero__ should necessarily return a boolean value, so transform Mock
  results into True (#380024).

- Applied change suggested by David Glick to avoid reimporting modules
  (#529675).

- When setting the temporary __mocker_mock__ attribute, use Mocker.patch()
  so that by the end of the mocking it's properly removed (by Thomas Herve).

- Prevent the MockerTestCase base from leaving the mocker in replay mode
  while the base class run() method runs, since this might have additional
  logic which touches mocked content (time.time() was one case). Thanks
  to Thomas Herve for the initial debugging.

- Ensure that the raised AttributeError exception on a patched object
  exposes the real problem rather than a mocker error (by Duncan McGreggor).

- When cleaning up on MockerTestCase, use reset() rather than restore(),
  so that the same test case instance may be run more than once (like
  Trial does).

- Some tweaks to prepare for Python 3.

- Added MockerTestCase to __all__.

0 blueprints and 0 bugs targeted

There are no feature specifications or bug tasks targeted to this milestone. The project's maintainer, driver, or bug supervisor can target specifications and bug tasks to this milestone to track the things that are expected to be completed for the release.

This milestone contains Public information
Everyone can see this information.