Skip to content

Commit e5d23c9

Browse files
committed
fixup
1 parent 669b340 commit e5d23c9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

pandas/tests/dtypes/test_generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class TestABCClasses:
1919
tuples = [[1, 2, 2], ["red", "blue", "red"]]
2020
multi_index = pd.MultiIndex.from_arrays(tuples, names=("number", "color"))
21-
datetime_index = pd.to_datetime(["2000/1/1", "2010/1/1"])
21+
datetime_index = pd.to_datetime(["1/1/2000", "1/1/2010"])
2222
timedelta_index = pd.to_timedelta(np.arange(5), unit="s")
2323
period_index = pd.period_range("1/1/2000", "1/1/2010", freq="M")
2424
categorical = pd.Categorical([1, 2, 3], categories=[2, 3, 1])

pandas/tests/io/parser/test_parse_dates.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,12 +1630,7 @@ def test_parse_date_column_with_empty_string(all_parsers):
16301630
# see gh-6428
16311631
parser = all_parsers
16321632
data = "case,opdate\n7,10/18/2006\n7,10/18/2008\n621, "
1633-
result = parser.read_csv_check_warnings(
1634-
UserWarning,
1635-
"Parsing datetime strings without a format specified",
1636-
StringIO(data),
1637-
parse_dates=["opdate"],
1638-
)
1633+
result = parser.read_csv(StringIO(data), parse_dates=["opdate"])
16391634

16401635
expected_data = [[7, "10/18/2006"], [7, "10/18/2008"], [621, " "]]
16411636
expected = DataFrame(expected_data, columns=["case", "opdate"])

0 commit comments

Comments
 (0)