potiuk commented on code in PR #41296:
URL: https://github.com/apache/airflow/pull/41296#discussion_r1706167554


##########
tests/models/test_taskinstance.py:
##########
@@ -1528,7 +1534,12 @@ def do_something_else(i):
             dep_context=DepContext(flag_upstream_failed=flag_upstream_failed),
             session=session,
         )
+        if is_db_isolation_mode():
+            TracebackSessionForTests.set_allow_db_access(session, True)
         completed = all(dep.passed for dep in dep_results)
+        if is_db_isolation_mode():
+            TracebackSessionForTests.set_allow_db_access(session, False)

Review Comment:
   Oh. yeah . I was not sure if this method is in main



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