Comment 2 for bug 1954512

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Removing the MockAutospecFixture() entirely works around this issue. Maybe it's not actually needed? If it is needed, I think each individual mock.Mock and mock.MagicMock needs to be inspected to ensure they are not autospec-ing Mock objects.

+--- a/networking_hyperv/tests/base.py
++++ b/networking_hyperv/tests/base.py
+@@ -50,7 +50,6 @@
+
+ def setUp(self):
+ super(BaseTestCase, self).setUp()
+- self.useFixture(mock_fixture.MockAutospecFixture())
+ self._patch_autospec_classes()
+
+ self.addCleanup(CONF.reset)