derrickaw commented on code in PR #35914: URL: https://github.com/apache/beam/pull/35914#discussion_r2292589161
########## sdks/python/apache_beam/yaml/examples/testing/examples_test.py: ########## @@ -339,8 +343,21 @@ def test_yaml_example(self): for i, line in enumerate(expected): expected[i] = line.replace('# ', '').replace('\n', '') expected = [line for line in expected if line] + + raw_spec_string = ''.join(lines) + # Filter for any jinja preprocessor - this has to be done before other + # preprocessors. + jinja_preprocessor = [ + preprocessor for preprocessor in custom_preprocessors + if 'jinja_preprocessor' in preprocessor.__name__ + ] + if jinja_preprocessor: + jinja_preprocessor = jinja_preprocessor[0] + raw_spec_string = jinja_preprocessor(raw_spec_string) + custom_preprocessors.remove(jinja_preprocessor) Review Comment: ignoring -- 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: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org