Skip to content

Commit

Permalink
Fix test and add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Jun 12, 2022
1 parent 746e59b commit 2beb12f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Detailed list of changes

- The deprecated function ``mne_bids.mark_bad_channels`` has been removed in favor of :func:`mne_bids.mark_channels`, by `Richard Höchenberger`_ (:gh:`1009`)

- :func:`mne_bids.print_dir_tree` now raises a :py:class:`FileNotFoundError` instead of a :py:class:`ValueError` if the directory does not exist, by `Richard Höchenberger`_ (:gh:`1013`)

🛠 Requirements
^^^^^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion mne_bids/tests/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_search_folder_for_text(capsys):

def test_print_dir_tree(capsys):
"""Test printing a dir tree."""
with pytest.raises(ValueError, match='Directory does not exist'):
with pytest.raises(FileNotFoundError, match='Folder does not exist'):
print_dir_tree('i_dont_exist')

# We check the testing directory
Expand Down

0 comments on commit 2beb12f

Please sign in to comment.