[
https://issues.apache.org/jira/browse/FLINK-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15315835#comment-15315835
]
ASF GitHub Bot commented on FLINK-4002:
---------------------------------------
Github user omaralvarez commented on the issue:
https://github.com/apache/flink/pull/2063
I have fixed the last errors in the test functions. But, while trying to
refactor the utility code, that now is repeated in both test files, I think I
found another bug.
The thing is that, in order to be able to have another `utils.py` file, we
need to execute the tests as:
`pyflink2.sh test_main.py utlis.py`
Right now, if HDFS is not used, our case with ` env.execute(local=True)`,
the packages are not copied to the temp folder along with the script file, and
the runner fails not being able to locate the module that has been imported. If
we add this module to the `PYTHONPATH`everything works fine, but I believe this
should happen. This is probably a matter for another JIRA issue altogether.
> [py] Improve testing infraestructure
> ------------------------------------
>
> Key: FLINK-4002
> URL: https://issues.apache.org/jira/browse/FLINK-4002
> Project: Flink
> Issue Type: Bug
> Components: Python API
> Affects Versions: 1.0.3
> Reporter: Omar Alvarez
> Priority: Minor
> Labels: Python, Testing
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> The Verify() test function errors out when array elements are missing:
> {code}
> env.generate_sequence(1, 5)\
> .map(Id()).map_partition(Verify([1,2,3,4], "Sequence")).output()
> {code}
> {quote}
> IndexError: list index out of range
> {quote}
> There should also be more documentation in test functions.
> I am already working on a pull request to fix this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)