nailo2c commented on PR #51737:
URL: https://github.com/apache/airflow/pull/51737#issuecomment-2973242472

   It was likely caused by behind, I checked out a new branch from the latest 
main and the test passed again.
   
   The logic of this unit test is quite simple, let me dig in and try to find 
out why his happened, then maybe submit another PR to add this test back?
   
   Unit test:
   ```python
   def test_serde_serialize_recursion_limit(self):
       depth = sys.getrecursionlimit() - 1
       with pytest.raises(RecursionError, match="maximum recursion depth 
reached for serialization"):
           serialize(object(), depth=depth)
   ```
   
   Tested function:
   ```python
   MAX_RECURSION_DEPTH = sys.getrecursionlimit() - 1
   def serialize(o: object, depth: int = 0) -> U | None:
       if depth == MAX_RECURSION_DEPTH:
           raise RecursionError("maximum recursion depth reached for 
serialization")
   ```


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