[ https://issues.apache.org/jira/browse/BEAM-7836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentyn Tymofieiev reassigned BEAM-7836: ----------------------------------------- Assignee: Udi Meiri > Provide a way to exclude unit / integration tests with incompatible syntax > from running under particular version of Python. > --------------------------------------------------------------------------------------------------------------------------- > > Key: BEAM-7836 > URL: https://issues.apache.org/jira/browse/BEAM-7836 > Project: Beam > Issue Type: Bug > Components: sdk-py-core, testing > Reporter: Valentyn Tymofieiev > Assignee: Udi Meiri > Priority: Major > > Beam currently runs Python tests in 4 version of Python: 2.7, 3.5, 3.6, 3.7. > Some Python 3 tests may include code that is considered incorrect syntax in > older versions of Python, and such test may break test suites that they are > not intended for, see an example: [1] > We use `exec` as work around in (very few) tests , example: [2], but it is > less convenient to work with such code, for example it is harder to debug or > work with in IDE. > We should find best practices to deal with this problem and introduce a > solution to the Beam . > cc: [~markflyhigh], [~udim], [~yoshiki.obata] > [1] https://github.com/apache/beam/pull/8505#issuecomment-498441270 > [2] > https://github.com/apache/beam/blob/6cf3b1133658e963b6cc23f780480c3359e79ad6/sdks/python/apache_beam/internal/pickler_test.py#L103 > -- This message was sent by Atlassian JIRA (v7.6.14#76016)