Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 19, 2024
1 parent 10ea088 commit 84737b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def test_index_error(tmp_path):
with pytest.raises(FileNotFoundError):
# file does not exist yet
io[0]

io.append(ase.build.molecule("H2O"))
assert io[0] is not None
assert io[-1] is not None
Expand All @@ -254,4 +254,4 @@ def test_index_error(tmp_path):
with pytest.raises(IndexError):
io[1]
with pytest.raises(IndexError):
io[-2]
io[-2]

0 comments on commit 84737b9

Please sign in to comment.