Skip to content

Commit

Permalink
MAINT: Remove bare pytest.raises
Browse files Browse the repository at this point in the history
Ensure all pytest raises are not bare
  • Loading branch information
bashtage committed Jan 24, 2020
1 parent c02302d commit 1750413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/io/test_stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ def test_unsupported_datetype(self):
"dates": dates,
}
)
with pytest.raises(NotImplementedError):
with pytest.raises(NotImplementedError, match="Data type datetime64"):
with tm.ensure_clean() as path:
original.to_stata(path)

Expand Down

0 comments on commit 1750413

Please sign in to comment.