summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/changelog.txt1
-rw-r--r--tests/testmock.py13
2 files changed, 0 insertions, 14 deletions
diff --git a/docs/changelog.txt b/docs/changelog.txt
index 2560b6f..c54ba12 100644
--- a/docs/changelog.txt
+++ b/docs/changelog.txt
@@ -7,7 +7,6 @@ CHANGELOG
2012/XX/XX Version 0.8.1
------------------------
-* BUGFIX: `return_value` of a `Mock` with a class as `spec` inherits the `spec`
* BUGFIX: `create_autospec` works correctly for calling mocked unbound methods
diff --git a/tests/testmock.py b/tests/testmock.py
index 604c688..31ea50c 100644
--- a/tests/testmock.py
+++ b/tests/testmock.py
@@ -420,19 +420,6 @@ class MockTest(unittest2.TestCase):
test_attributes(Mock(spec=Something()))
- def test_spec_return_value(self):
- class A(object):
- pass
- for Klass in Mock, MagicMock:
- for arg in ('spec', 'spec_set'):
- kwargs = {arg: A}
- m = Klass(**kwargs)
- self.assertTrue(isinstance(m, A))
-
- instance = m()
- self.assertTrue(isinstance(instance, A))
-
-
def test_wraps_calls(self):
real = Mock()