@@ -169,14 +169,14 @@ def new_obj(self, objtype, **kwargs):
169
169
"""Return new mocked out ChapelObject"""
170
170
default_args = {
171
171
'name' : 'my-chpl' ,
172
- 'arguments' : mock .Mock ('arguments' ),
173
- 'options' : mock .Mock ('options' ),
174
- 'content' : mock .Mock ('content' ),
175
- 'lineno' : mock .Mock ('lineno' ),
176
- 'content_offset' : mock .Mock ('content_offset' ),
177
- 'block_text' : mock .Mock ('block_text' ),
178
- 'state' : mock .Mock ('state' ),
179
- 'state_machine' : mock .Mock ('state_machine' ),
172
+ 'arguments' : mock .Mock (name = 'arguments' ),
173
+ 'options' : mock .Mock (name = 'options' ),
174
+ 'content' : mock .Mock (name = 'content' ),
175
+ 'lineno' : mock .Mock (name = 'lineno' ),
176
+ 'content_offset' : mock .Mock (name = 'content_offset' ),
177
+ 'block_text' : mock .Mock (name = 'block_text' ),
178
+ 'state' : mock .Mock (name = 'state' ),
179
+ 'state_machine' : mock .Mock (name = 'state_machine' , spec = [ "reporter" ,] ),
180
180
}
181
181
default_args .update (kwargs )
182
182
o = self .object_cls (** default_args )
0 commit comments