[Qgis-developer] Missing next() method in Python 3 QgsFeatureIterator in master
Matthias Kuhn
matthias at opengis.ch
Fri Jul 1 03:46:38 PDT 2016
On 07/01/2016 12:34 PM, Alessandro Pasotti wrote:
> Thanks!
>
> I thought that the RefactoringTool: was taking care of that.
I guess you are referring to -DPORT_PLUGINS=ON (which is enabled on
travis/py3).
> Isn't the 2to3 run automatically on the test python files too?
No.
Actually it would be better if it wouldn't even run on plugins, but that
would mean that it would have to be run on their source and that might
potentially break them for python 2. Since plugins miss comprehensive
tests (and most of them miss tests at all) that would point out issues
and since python 2 is our current stable target that's too much risk.
Tests on the other hand have a pretty good test coverage inherently, so
they can be ported statically.
Matthias
More information about the Qgis-developer
mailing list