Skip to content

Commit a60ef2c

Browse files
gfyoungJulianWgs
authored andcommitted
ERR: Removing quotation marks in error message (pandas-dev#37120)
Follow-up to pandas-dev#36852
1 parent c3ed803 commit a60ef2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/io/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3826,6 +3826,6 @@ def _validate_skipfooter(kwds: Dict[str, Any]) -> None:
38263826
"""
38273827
if kwds.get("skipfooter"):
38283828
if kwds.get("iterator") or kwds.get("chunksize"):
3829-
raise ValueError("'skipfooter' not supported for 'iteration'")
3829+
raise ValueError("'skipfooter' not supported for iteration")
38303830
if kwds.get("nrows"):
38313831
raise ValueError("'skipfooter' not supported with 'nrows'")

pandas/tests/io/parser/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def test_iterator_stop_on_chunksize(all_parsers):
719719
"kwargs", [dict(iterator=True, chunksize=1), dict(iterator=True), dict(chunksize=1)]
720720
)
721721
def test_iterator_skipfooter_errors(all_parsers, kwargs):
722-
msg = "'skipfooter' not supported for 'iteration'"
722+
msg = "'skipfooter' not supported for iteration"
723723
parser = all_parsers
724724
data = "a\n1\n2"
725725

0 commit comments

Comments
 (0)