Skip to content

Commit

Permalink
Fix MockedArray.copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Aug 20, 2024
1 parent 7b237bb commit e8aa3d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/test_fenicsprecice.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ def assign(self, new_value):
"""
self.value = new_value.value

def copy(self):
def copy(self, deepcopy=False):
"""
mock of dolfin.Function.copy
:param deepcopy: has no effect but we need to provide it to avoid throwing TypeError if copy(deepcopy=True) is called
"""
returned_array = MockedArray()
returned_array.value = self.value
return returned_array
Expand Down

0 comments on commit e8aa3d7

Please sign in to comment.