Skip to content

Commit bd2b598

Browse files
Apply suggestion from @mroeschke
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent abcd227 commit bd2b598

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/tools/test_to_datetime.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3793,8 +3793,7 @@ def test_to_datetime_wrapped_datetime64_ps():
37933793

37943794

37953795
def test_to_datetime_lxml_elementunicoderesult_with_format(cache):
3796-
pytest.importorskip("lxml")
3797-
from lxml import etree # pyright: ignore[reportMissingImports]
3796+
etree = pytest.importorskip("lxml.etree")
37983797

37993798
s = "2025-02-05 16:59:57"
38003799
node = etree.XML(f"<date>{s}</date>")

0 commit comments

Comments
 (0)