You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/06/25 06:24:31 UTC
[GitHub] [airflow] XD-DENG commented on issue #5469: [AIRFLOW-4842] Add Py2
deprecation notice
XD-DENG commented on issue #5469: [AIRFLOW-4842] Add Py2 deprecation notice
URL: https://github.com/apache/airflow/pull/5469#issuecomment-505302977
Observe error
```
51) ERROR: Failure: SyntaxError (invalid syntax (branch_operator.py, line 51))
----------------------------------------------------------------------
Traceback (most recent call last):
.tox/py27-backend_mysql-env_docker/lib/python2.7/site-packages/nose/loader.py line 418 in loadTestsFromName
addr.filename, addr.module)
.tox/py27-backend_mysql-env_docker/lib/python2.7/site-packages/nose/importer.py line 47 in importFromPath
return self.importFromDir(dir_path, fqname)
.tox/py27-backend_mysql-env_docker/lib/python2.7/site-packages/nose/importer.py line 94 in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
tests/operators/test_branch_operator.py line 25 in <module>
from airflow.operators.branch_operator import BaseBranchOperator
SyntaxError: invalid syntax (branch_operator.py, line 51)
```
Only Py2 tests failed, and caused by this line: https://github.com/apache/airflow/blob/v1-10-test/airflow/operators/branch_operator.py#L51
```python
def execute(self, context: Dict):
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services