From bba7e694799b88a9bbd0b434b404f899a7102c42 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Sun, 25 Mar 2012 23:46:29 +0100 Subject: Changes for 1.0.0a1 release --- docs/changelog.txt | 2 +- docs/examples.txt | 11 ----------- docs/index.txt | 4 ++-- mock.py | 2 +- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index de9ab0b..6f7af68 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -4,7 +4,7 @@ CHANGELOG ========= -2012/XX/XX Version 1.0.0 alpha 1 +2012/03/25 Version 1.0.0 alpha 1 -------------------------------- The standard library version! diff --git a/docs/examples.txt b/docs/examples.txt index 34b2196..d35dd45 100644 --- a/docs/examples.txt +++ b/docs/examples.txt @@ -823,17 +823,6 @@ With slightly more work you can also mock package imports: >>> mock.module.fooble.assert_called_once_with() -Unfortunately it seems that using `patch.dict` as a test *decorator* on -`sys.modules` interferes with the way `nosetests -`_ collects tests. -`nosetests` does some manipulation of `sys.modules` (along with `sys.path` -manipulation) and using `patch.dict` with `sys.modules` can cause it to not -find tests. Using `patch.dict` as a context manager, or using the -:ref:`start-and-stop`, work around this by taking a reference to `sys.modules` -inside the test rather than at import time. (Using `patch.dict` as a decorator -takes a *reference* to `sys.modules` at import time, it doesn't do the -patching until the test is executed though.) - Tracking order of calls and less verbose call assertions ======================================================== diff --git a/docs/index.txt b/docs/index.txt index 5374d7b..1d290f5 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -7,11 +7,11 @@ :Author: `Michael Foord `_ :Version: |release| -:Date: 2012/02/13 +:Date: 2012/03/25 :Homepage: `Mock Homepage`_ :Download: `Mock on PyPI`_ :Documentation: `PDF Documentation - `_ + `_ :License: `BSD License`_ :Support: `Mailing list (testing-in-python@lists.idyll.org) `_ diff --git a/mock.py b/mock.py index c896dcb..1c74367 100644 --- a/mock.py +++ b/mock.py @@ -30,7 +30,7 @@ __all__ = ( ) -__version__ = '1.0alpha1' +__version__ = '1.0.0alpha1' import pprint -- cgit v1.2.1