Subham-KRLX commented on code in PR #58594: URL: https://github.com/apache/airflow/pull/58594#discussion_r2638756526
########## devel-common/src/tests_common/pytest_plugin.py: ########## @@ -35,7 +35,15 @@ import pytest import time_machine -from _pytest.config.findpaths import ConfigValue +try: + from _pytest.config.findpaths import ConfigValue +except ImportError: + # Fallback for newer pytest where ConfigValue might be removed or private + class ConfigValue: + def __init__(self, value, origin, mode): + self.value = value + self.origin = origin + self.mode = mode Review Comment: You are right I have already updated it to use the custom [ConfigValue](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html) class for all pytest versions, removing the try/except import entirely. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
