Skip to content

Commit 3e9f04e

Browse files
authored
Update test_preserve_leading_zeros.py
1 parent 247d514 commit 3e9f04e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/tests/io/parser/test_preserve_leading_zeros.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ def test_leading_zeros_preserved_with_dtype_str(all_parsers, request):
3434
assert result.loc[0, "col4"] == "0150", "lost zeros in col4 row 0"
3535
assert result.loc[2, "col4"] == "0205", "lost zeros in col4 row 2"
3636

37-
for col in ["col1", "col2", "col3", "col4"]:
38-
assert result.dtypes[col] == "object", (
39-
f"{engine_name} wrong dtype for {col}"
40-
)
41-
4237
except AssertionError as exc:
4338
if engine_name == "pyarrow":
4439
# Known issue: pyarrow engine strips leading zeros even with dtype=str.

0 commit comments

Comments
 (0)