Skip to content

Commit d7cf8b9

Browse files
committed
Clean test_bad_date_parse_with_warning
1 parent c3bace8 commit d7cf8b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/io/parser/test_parse_dates.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,11 @@ def test_bad_date_parse(all_parsers, cache, value):
265265
)
266266

267267

268-
@pytest.mark.parametrize("value", ["0"])
269-
def test_bad_date_parse_with_warning(all_parsers, cache, value):
268+
def test_bad_date_parse_with_warning(all_parsers, cache):
270269
# if we have an invalid date make sure that we handle this with
271270
# and w/o the cache properly.
272271
parser = all_parsers
273-
s = StringIO((f"{value},\n") * 50000)
272+
s = StringIO(("0,\n") * (start_caching_at + 1))
274273

275274
if parser.engine == "pyarrow":
276275
# pyarrow reads "0" as 0 (of type int64), and so

0 commit comments

Comments
 (0)