File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2222
2323 # Only install mock after we've failed to import pandas for conftest.py
2424 class MockPandas :
25- def __getattr__ (self , name ) :
25+ def __getattr__ (self , name : str ) -> object :
2626 pytest .skip ("pandas not available" , allow_module_level = True )
2727
2828 sys .modules ["pandas" ] = MockPandas ()
@@ -56,18 +56,18 @@ def pytest_addoption(parser):
5656
5757@pytest .hookimpl (hookwrapper = True )
5858def pytest_runtest_call (item ):
59- """Convert pandas requirement exceptions to skips"""
59+ """Convert pandas requirement exceptions to skips. """
6060 outcome = yield
6161
62- # TODO: Remove skip when Pandas releases for 3.14. After, consider bumping to 3.15
62+ # TODO: Remove skip when Pandas releases for 3.14. After, consider bumping to 3.15 # noqa: TD002,TD003
6363 if sys .version_info [:2 ] == (3 , 14 ):
6464 try :
6565 outcome .get_result ()
6666 except duckdb .InvalidInputException as e :
6767 if "'pandas' is required for this operation but it was not installed" in str (e ):
6868 pytest .skip ("pandas not available - test requires pandas functionality" )
6969 else :
70- raise e
70+ raise
7171
7272
7373def pytest_collection_modifyitems (config , items ):
You can’t perform that action at this time.
0 commit comments