uranusjr commented on code in PR #58594:
URL: https://github.com/apache/airflow/pull/58594#discussion_r2638647881


##########
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:
   I’m wondering if this would just work for all pytest versions so we don’t 
need to import from _pytest at all



-- 
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]

Reply via email to