Skip to content

Commit 8f66e54

Browse files
authored
Extend tests for serialize_funct_h5() (#743)
1 parent f38f016 commit 8f66e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cache_backend_execute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_execute_function_args(self):
6161
task_key, data_dict = serialize_funct_h5(
6262
fn=my_funct,
6363
fn_args=[1, 2],
64-
fn_kwargs={},
64+
fn_kwargs=None,
6565
)
6666
file_name = os.path.join(cache_directory, task_key + "_i.h5")
6767
os.makedirs(os.path.join(cache_directory, task_key), exist_ok=True)
@@ -88,7 +88,7 @@ def test_execute_function_kwargs(self):
8888
os.makedirs(cache_directory, exist_ok=True)
8989
task_key, data_dict = serialize_funct_h5(
9090
fn=my_funct,
91-
fn_args=[],
91+
fn_args=None,
9292
fn_kwargs={"a": 1, "b": 2},
9393
)
9494
file_name = os.path.join(cache_directory, task_key + "_i.h5")

0 commit comments

Comments
 (0)