Skip to content

Commit ecd4abb

Browse files
committed
remove test checking labels
1 parent cceca71 commit ecd4abb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pandas/tests/plotting/test_datetimelike.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
""" Test cases for time series specific (freq conversion, etc) """
22
from datetime import date, datetime, time, timedelta
33
import pickle
4-
import re
54
import sys
65

76
import numpy as np
@@ -51,15 +50,6 @@ def test_ts_plot_with_tz(self, tz_aware_fixture):
5150
index = date_range("1/1/2011", periods=2, freq="H", tz=tz)
5251
ts = Series([188.5, 328.25], index=index)
5352
with tm.assert_produces_warning(None):
54-
fig, ax = self.plt.subplots()
55-
ts.plot(ax=ax)
56-
fig.canvas.draw()
57-
labels = [i.get_text() for i in ax.get_xticklabels()]
58-
# Extract H:M component, check first point is in correct timezone.
59-
# NOTE: this test could be updated once GH 31548 is fixed,
60-
# so that the last point is checked as well.
61-
assert labels == []
62-
assert re.findall(r"[^:]?(\d{2}:\d{2})", labels[0])[0] == "00:00"
6353
_check_plot_works(ts.plot)
6454

6555
def test_fontsize_set_correctly(self):

0 commit comments

Comments
 (0)