vincbeck commented on PR #41067:
URL: https://github.com/apache/airflow/pull/41067#issuecomment-2263516508

   I think there is a bug in the `TracebackSessionForTests` class. See error 
below:
   
   ```
   self = <airflow.settings.TracebackSessionForTests object at 0xffff8f812c70>, 
item = 'scalar'
   
       def __getattr__(self, item):
           test_code, frame_summary = self.is_called_from_test_code()
           if test_code:
               return getattr(self.current_db_session, item)
           print("POUETTT")
           print(frame_summary)
           raise RuntimeError(
   >           "TracebackSessionForTests object was used but internal API is 
enabled. "
               "Only test code is allowed to use this object.\n"
               f"Called from:\n    {frame_summary.filename}: 
{frame_summary.lineno}{frame_summary.colno}\n"
               f"     {frame_summary.line}\n\n"
               "You'll need to ensure you are making only RPC calls with this 
object. "
               "The stack list below will show where the TracebackSession 
object was called:\n"
               + get_cleaned_traceback(self.traceback)
               + "\n\nThe stack list below will show where the TracebackSession 
object was created:\n"
               + get_cleaned_traceback(self.created_traceback)
           )
   E       AttributeError: 'FrameSummary' object has no attribute 'colno'
   ```


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