<commit_before>.. currentmodule:: mock


CHANGELOG
=========

2012/11/05 Version 1.0.1
------------------------

* Functions decorated with `patch` variants have a `__wrapped__` attribute
  pointing to the original function. This brings compatibility with the
  default behaviour in Python 3.3 (due to a new feature in `functools.wraps`).


2012/10/07 Version 1.0.0
------------------------

No changes since 1.0.0 beta 1. This version has feature parity with
`unittest.mock
<http://docs.python.org/py3k/library/unittest.mock.html#module-unittest.mock>`_
in Python 3.3.

Full list of changes since 0.8:

* `mocksignature`, along with the `mocksignature` argument to `patch`, removed
* Support for deleting attributes (accessing deleted attributes will raise an
  `AttributeError`)
* Added the `mock_open` helper function for mocking the builtin `open`
* `__class__` is assignable, so a mock can pass an `isinstance` check without
  requiring a spec
* Addition of `PropertyMock`, for mocking properties
* `MagicMocks` made unorderable by default (in Python 3). The comparison
  methods (other than equality and inequality) now return `NotImplemented`<commit_msg>Restore Python 2.4 warning in the changelog<commit_after>.. currentmodule:: mock


CHANGELOG
=========

2012/11/05 Version 1.0.1
------------------------

* Functions decorated with `patch` variants have a `__wrapped__` attribute
  pointing to the original function. This brings compatibility with the
  default behaviour in Python 3.3 (due to a new feature in `functools.wraps`).

Note that due to changes in `tox`, `mock` is no longer tested with Python 2.4.
The compatibility code has not been removed so it probably still works, but
tests are no longer run.


2012/10/07 Version 1.0.0
------------------------

No changes since 1.0.0 beta 1. This version has feature parity with
`unittest.mock
<http://docs.python.org/py3k/library/unittest.mock.html#module-unittest.mock>`_
in Python 3.3.

Full list of changes since 0.8:

* `mocksignature`, along with the `mocksignature` argument to `patch`, removed
* Support for deleting attributes (accessing deleted attributes will raise an
  `AttributeError`)
* Added the `mock_open` helper function for mocking the builtin `open`
* `__class__` is assignable, so a mock can pass an `isinstance` check without
  requiring a spec
* Addition of `PropertyMock`, for mocking properties
* `MagicMocks` made unorderable by default (in Python 3). The comparison
  methods (other than equality and inequality) now return `NotImplemented`
{'fraction_non_alphanumeric': 0.12159494670351362, 'fraction_numerical': 0.0284247927358863, 'mean_word_length': 3.7721280602636535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4249163', 'n_tokens_mistral': 753, 'n_tokens_neox': 705, 'n_words': 306}