Skip to content

Commit

Permalink
i do think i figured
Browse files Browse the repository at this point in the history
  • Loading branch information
hernot committed Jul 31, 2020
1 parent fed1991 commit 90bb8e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hickle/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def convert(self):
def _moc_numpy_array_object_lambda(x):
return x[0]

register_class(_moc_numpy_array_object_lambda,b'moc_lambda',None,load_nothing)
register_class(_moc_numpy_array_object_lambda,b'moc_lambda',dump_nothing,load_nothing)

def fix_lambda_obj_type(bytes_object, *, fix_imports=True, encoding="ASCII", errors="strict"):
if bytes_object is None:
Expand Down
2 changes: 1 addition & 1 deletion hickle/tests/test_02_hickle_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def test__DictItemContainer():
assert container.convert() is my_bike_lock


def test__moc_numpy_array_object_lambda():
def test__moc_numpy_array_object_lambda(loader_table):
data = ['hello','world']
assert lookup._moc_numpy_array_object_lambda(data) == data[0]

Expand Down

0 comments on commit 90bb8e5

Please sign in to comment.