[gdal-dev] Tons of errors in tests
Even Rouault
even.rouault at spatialys.com
Wed Jun 2 09:32:02 PDT 2021
> However, if I run the full test suite, it fails collecting
> alg/fillnodata.py
> (I work it around with "pytest --continue-on-collection-errors")
The issue is that pytest 4.6.9 is too old. I've just bumped the min
version to 6.0.0
>
> $ pytest
> Test session starts (platform: linux, Python 3.8.5, pytest 4.6.9,
> pytest-sugar 0.9.4)
> rootdir: /home/jshaw/work/gdal/autotest, inifile: pytest.ini,
> testpaths: ogr, gcore, gdrivers, osr, alg, gnm, utilities, pyscripts
> plugins: sugar-0.9.4, env-0.6.2
> collecting ...
> ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
> ERROR collecting alg/fillnodata.py
> ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/python.py:234: in
> pytest_pycollect_makeitem
> res = list(collector._genfunctions(name, obj))
> /usr/lib/python3/dist-packages/_pytest/python.py:410: in _genfunctions
> self.ihook.pytest_generate_tests(metafunc=metafunc)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/python.py:137: in
> pytest_generate_tests
> metafunc.parametrize(*marker.args, **marker.kwargs)
> /usr/lib/python3/dist-packages/_pytest/python.py:1015: in parametrize
> ids = self._resolve_arg_ids(argnames, ids, parameters,
> item=self.definition)
> /usr/lib/python3/dist-packages/_pytest/python.py:1069: in _resolve_arg_ids
> ids = idmaker(argnames, parameters, idfn, ids, self.config, item=item)
> /usr/lib/python3/dist-packages/_pytest/python.py:1221: in idmaker
> ids = [
> /usr/lib/python3/dist-packages/_pytest/python.py:1222: in <listcomp>
> _idvalset(valindex, parameterset, argnames, idfn, ids,
> config=config, item=item)
> /usr/lib/python3/dist-packages/_pytest/python.py:1210: in _idvalset
> if ids is None or (idx >= len(ids) or ids[idx] is None):
> E TypeError: 'dict_keys' object is not subscriptable
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> Interrupted: 1 errors during collection
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> Results (5.42s):
>
> Cheers
> .___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__
> Entre dos pensamientos racionales
> hay infinitos pensamientos irracionales.
>
>
>
> On Wed, 2 Jun 2021 at 17:38, Even Rouault <even.rouault at spatialys.com
> <mailto:even.rouault at spatialys.com>> wrote:
>
> Javier,
>
> CONTRIBUTING.md was missing the --with-python configure switch to
> build the python bindings. Now fixed
>
> So re-run ./configure --with-python && make -j8 -s , and also
> source again ". scripts/setdevenv.sh" so that PYTHONPATH is set
> appropriately
>
> You can check that everything is OK with:
>
> python -c "from osgeo import gdal; print(gdal.__version__)"
>
> Even
>
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210602/e7162787/attachment.html>
More information about the gdal-dev
mailing list