Abacn commented on issue #22124: URL: https://github.com/apache/beam/issues/22124#issuecomment-1172537710
The difference happens to the caused by the branching [here]( https://github.com/apache/beam/blob/680ed5b3a49990e2de0730b49233dfe22cfe9b8f/sdks/python/apache_beam/typehints/schemas.py#L301) If running pytest with the single test, user_type is None, and the try in the if clause raises with schema printed, which passed the assertion. If running pytest with the whole RowCoderTest, user_type is not None and the next if clause is not executed. typing_from_runner_api returned successfully and the Exception is raised much later, in [here](https://github.com/apache/beam/blob/680ed5b3a49990e2de0730b49233dfe22cfe9b8f/sdks/python/apache_beam/coders/row_coder.py#L179), without schema printed. -- 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]
