8000 Fix minor error in dynamic load function by nmusolino · Pull Request #25256 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Fix minor error in dynamic load function #25256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 28, 2019
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
Next Next commit
Match message in validate_docstrings test
  • Loading branch information
nmusolino committed Feb 22, 2019
commit 480a3de5c83f04d2df41b60860b8a1bb51465060
6 changes: 4 additions & 2 deletions scripts/tests/test_validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,10 @@ def test_resolves_class_name(self, name_and_expected_obj):

@pytest.mark.parametrize('invalid_name', ['panda', 'panda.DataFrame'])
def test_raises_for_invalid_module_name(self, invalid_name):
# Note that the module names in this test are misspelled.
with pytest.raises(ImportError):
# 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)
with pytest.raises(ImportError, match=msg):
validate_docstrings.Docstring(invalid_name)

@pytest.mark.parametrize('invalid_name',
Expand Down
0