8000 TST: GH30999 add match=msg to 2 pytest.raises in pandas/tests/io/json/test_normalize.py by moink · Pull Request #38864 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: GH30999 add match=msg to 2 pytest.raises in pandas/tests/io/json/test_normalize.py #38864

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
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
Next Next commit
TST: GH30999 add match=msg to 2 pytest.raises in pandas/tests/io/json…
…/test_normalize.py
  • Loading branch information
moink committed Dec 31, 2020
commit 82a36c2538db9af3d8f6d3cb33a815d7a351d876
12 changes: 10 additions & 2 deletions pandas/tests/io/json/test_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,16 @@ def test_empty_array(self):
[
([{"a": 0}, {"a": 1}], None, does_not_raise()),
({"a": [{"a": 0}, {"a": 1}]}, "a", does_not_raise()),
('{"a": [{"a": 0}, {"a": 1}]}', None, pytest.raises(NotImplementedError)),
(None, None, pytest.raises(NotImplementedError)),
(
'{"a": [{"a": 0}, {"a": 1}]}',
None,
pytest.raises(NotImplementedError, match=tm.EMPTY_STRING_PATTERN),
),
(
None,
None,
pytest.raises(NotImplementedError, match=tm.EMPTY_STRING_PATTERN),
),
],
)
def test_accepted_input(self, data, record_path, error):
Expand Down
0