Skip to content

Commit a94bf56

Browse files
committed
simplify regex
1 parent dc3f95c commit a94bf56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/plotting/test_datetimelike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_ts_plot_with_tz(self, tz_aware_fixture):
5858
# Extract H:M component, check first point is in correct timezone.
5959
# NOTE: this test could be updated once GH 31548 is fixed,
6060
# so that the last point is checked as well.
61-
assert re.findall(r"[^:]*(\d{2}:\d{2})", labels[0]) == ["00:00"]
61+
assert re.findall(r"\d{2}:\d{2}", labels[0])[0] == "00:00"
6262
_check_plot_works(ts.plot)
6363

6464
def test_fontsize_set_correctly(self):

0 commit comments

Comments
 (0)