Skip to content

Commit

Permalink
ERR: Removing quotation marks in error message (#37120)
Browse files Browse the repository at this point in the history
Follow-up to #36852
  • Loading branch information
gfyoung committed Oct 15, 2020
1 parent d7a5b83 commit c708a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3826,6 +3826,6 @@ def _validate_skipfooter(kwds: Dict[str, Any]) -> None:
"""
if kwds.get("skipfooter"):
if kwds.get("iterator") or kwds.get("chunksize"):
raise ValueError("'skipfooter' not supported for 'iteration'")
raise ValueError("'skipfooter' not supported for iteration")
if kwds.get("nrows"):
raise ValueError("'skipfooter' not supported with 'nrows'")
2 changes: 1 addition & 1 deletion pandas/tests/io/parser/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def test_iterator_stop_on_chunksize(all_parsers):
"kwargs", [dict(iterator=True, chunksize=1), dict(iterator=True), dict(chunksize=1)]
)
def test_iterator_skipfooter_errors(all_parsers, kwargs):
msg = "'skipfooter' not supported for 'iteration'"
msg = "'skipfooter' not supported for iteration"
parser = all_parsers
data = "a\n1\n2"

Expand Down

0 comments on commit c708a32

Please sign in to comment.