|
@@ -138,6 +138,7 @@ class Mock(mock.Mock):
|
|
for attr_name, attr_value in items(attrs):
|
|
for attr_name, attr_value in items(attrs):
|
|
setattr(self, attr_name, attr_value)
|
|
setattr(self, attr_name, attr_value)
|
|
|
|
|
|
|
|
+
|
|
class _ContextMock(Mock):
|
|
class _ContextMock(Mock):
|
|
"""Dummy class implementing __enter__ and __exit__
|
|
"""Dummy class implementing __enter__ and __exit__
|
|
as the with statement requires these to be implemented
|
|
as the with statement requires these to be implemented
|
|
@@ -161,7 +162,6 @@ def ContextMock(*args, **kwargs):
|
|
return obj
|
|
return obj
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
def skip_unless_module(module):
|
|
def skip_unless_module(module):
|
|
|
|
|
|
def _inner(fun):
|
|
def _inner(fun):
|