Skip to content

Commit 36643ac

Browse files
committed
Undo formatting changes to_load and test_load
1 parent 9bd7ea5 commit 36643ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/data/src/pyearthtools/data/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ def load(stream: Union[str, Path], **kwargs) -> "pyearthtools.data.Index":
8686
contents = initialisation.update_contents(contents, **kwargs)
8787

8888
# Load and return the contents as yaml.
89-
return yaml.load(str(contents), initialisation.Loader)
89+
return yaml.load(str(contents), initialisation.Loader)

packages/data/tests/test_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ def test_load_invalid_yaml():
103103
patch("yaml.load", side_effect=yaml.YAMLError),
104104
):
105105
with pytest.raises(yaml.YAMLError):
106-
load(invalid_yaml_content)
106+
load(invalid_yaml_content)

0 commit comments

Comments
 (0)