Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test_validate_docstrings.py
Minor tweaks
  • Loading branch information
WillAyd authored Feb 28, 2019
commit 1b1ee481e4bf0db4d462bac14413160f0c70aac7
4 changes: 1 addition & 3 deletions scripts/tests/test_validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,9 +1017,7 @@ def test_resolves_class_name(self, name, expected_obj):

@pytest.mark.parametrize('invalid_name', ['panda', 'panda.DataFrame'])
def test_raises_for_invalid_module_name(self, invalid_name):
# When an invalid module name is supplied, an ImportError should be
# raised, and the message should contain the user-supplied name.
msg = 'No module can be imported.*{}'.format(invalid_name)
msg = 'No module can be imported from "{}"'.format(invalid_name)
with pytest.raises(ImportError, match=msg):
validate_docstrings.Docstring(invalid_name)

Expand Down