Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

0.6.1; add __getattr__ to GetWrapper to allow expectations on e.g. __…

…new__ special names
  • Loading branch information...
commit 222c6a694add9eb1ff472a8f630a2f0c07f7c430 1 parent 3c79aa3
@gfxmonk authored
Showing with 7 additions and 4 deletions.
  1. +1 −1  VERSION
  2. +2 −2 conf.py
  3. +3 −0  mocktest/mocking.py
  4. +1 −1  setup.py
View
2  VERSION
@@ -1 +1 @@
-0.6
+0.6.1
View
4 conf.py
@@ -45,9 +45,9 @@
# built documents.
#
# The short X.Y version.
-version = '0.6'
+version = '0.6.1'
# The full version, including alpha/beta/rc tags.
-release = '0.6'
+release = '0.6.1'
autodoc_default_flags = ['members']
View
3  mocktest/mocking.py
@@ -171,6 +171,9 @@ def __getattr__(self, name):
if self._used: raise RuntimeError("already used!")
self._used = True
return self._callback(name)
+
+ def __getitem__(self, name): # workaround for special methods like __new__
+ return self.__getattr__(name)
@property
def __call__(self):
View
2  setup.py
@@ -10,7 +10,7 @@
description='mocking library for python, inspired by rspec',
url='http://gfxmonk.net/dist/0install/mocktest.xml',
install_requires=['setuptools'],
- version='0.6',
+ version='0.6.1',
long_description="\n**Note**: This package has been built automatically by\n`zero2pypi <http://gfxmonk.net/dist/0install/zero2pypi.xml>`_.\nIf possible, you should use the zero-install feed instead:\nhttp://gfxmonk.net/dist/0install/mocktest.xml\n\n----------------\n\nmocktest\n********\n... is a powerful and easy-to-use mocking library, inspired by rspec and\nsimilar in some ways to Michael Foord's popular Mock module.\n\nSource / Issues:\nhttp://github.com/gfxmonk/mocktest/tree/master\n\n\nZero install feed:\nhttp://gfxmonk.net/dist/0install/mocktest.xml\n(this is the preferred distribution method)\n\n\nCheese shop entry:\nhttp://pypi.python.org/pypi/mocktest\n\n\nDocumentation / Installation\n----------------------------\nPlease see the full documentation online at:\nhttp://gfxmonk.net/dist/doc/mocktest/doc/\n",
name='mocktest',
classifiers=[
Please sign in to comment.
Something went wrong with that request. Please try again.