stankiewicz opened a new pull request, #41104: URL: https://github.com/apache/beam/pull/41104
`test_lambda_search_skips_attributes_that_raise` (added in #40711) hardcoded the module path `"apache_beam.internal.code_object_pickler_test"` for `ClassWithLambdaAndRaisingAttribute.fn`, which is defined inside the test file itself. When the test file is executed directly as `__main__` rather than imported by `pytest`, `ClassWithLambdaAndRaisingAttribute.fn.__module__` is `"__main__"`, causing the assertion to fail. Use `prefix` (`__name__`) like the rest of the test cases in `code_object_pickler_test.py`. -- 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]
