dandy10 commented on pull request #13723: URL: https://github.com/apache/beam/pull/13723#issuecomment-761565846
I've fixed the problem. The issue was with the snippets tests. The snippets tests were creating multiple PipelineOptions subclasses with conflicting/duplicated arguments. Calling PipelineOptions.get_all_options results in inspecting the subclasses of the PipelineOptions class. Even though the temporary PipelineOptions classes have fallen out of scope that had not yet been reflected in the PipelineOptions state. It seems that the calling `gc.collect()` is the [recommended](https://stackoverflow.com/questions/52428679/how-to-remove-classes-from-subclasses) way to force an update, so I've added that in the test tearDown call. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
