kristynsmith commented on code in PR #35958:
URL: https://github.com/apache/beam/pull/35958#discussion_r2301986605
##########
sdks/python/apache_beam/internal/code_object_pickler_test.py:
##########
@@ -126,83 +126,76 @@ def get_lambda_from_dictionary():
return get_lambda_from_dictionary()
+prefix = (
+ "__main__" if __name__ == "__main__" else
Review Comment:
1. when these tests are run in google3, prefix is `__main__`. i want the
code here and in google3 to be as similar as possible, so i added this prefix
part so the code paths can be correct while still having the same code in both
places.
2. i thought hardcoding made it more clear, but i see the benefit in doing
it programmatically. i've updated it accordingly
--
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]