Skip to content

Commit

Permalink
Merge pull request #727 from mkoura/fix_open
Browse files Browse the repository at this point in the history
Fix open in binary mode
  • Loading branch information
mkoura committed Oct 8, 2021
2 parents c8963f3 + f9c1459 commit babbcf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cardano_node_tests/utils/cluster_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def setup_test_addrs(cluster_obj: clusterlib.ClusterLib, destination_dir: FileTy

pools_data = load_pools_data(cluster_obj)
data_file = Path(cluster_env.state_dir) / ADDRS_DATA
with open(data_file, "wb", encoding="utf-8") as out_data:
with open(data_file, "wb") as out_data:
pickle.dump({**addrs_data, **pools_data}, out_data)

return data_file
Expand All @@ -463,7 +463,7 @@ def setup_test_addrs(cluster_obj: clusterlib.ClusterLib, destination_dir: FileTy
def load_addrs_data() -> dict:
"""Load data about addresses and their keys for usage in tests."""
data_file = Path(get_cluster_env().state_dir) / ADDRS_DATA
with open(data_file, "rb", encoding="utf-8") as in_data:
with open(data_file, "rb") as in_data:
return pickle.load(in_data) # type: ignore


Expand Down

0 comments on commit babbcf1

Please sign in to comment.