Bug#840286: pyresample: 1.2.5-1 broke its autopkgtest: ssmis_swath.npz missing
Sebastiaan Couwenberg
sebastic at xs4all.nl
Mon Oct 10 14:20:19 UTC 2016
On 10/10/2016 09:55 AM, Martin Pitt wrote:
> 1.2.5-1 broke its autopkgtest [1]:
>
> | ======================================================================
> | ERROR: test_geometry (unittest.loader._FailedTest)
> | ----------------------------------------------------------------------
> | ImportError: Failed to import test module: test_geometry
> | Traceback (most recent call last):
> | File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
> | module = self._get_module_from_name(name)
> | File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
> | __import__(name)
> | File "/usr/share/python-pyresample-test/test_geometry.py", line 5, in <module>
> | from pyresample.test.utils import catch_warnings
> | File "/usr/lib/python3/dist-packages/pyresample/test/__init__.py", line 27, in <module>
> | from pyresample.test import (
> | File "/usr/lib/python3/dist-packages/pyresample/test/test_plot.py", line 18, in <module>
> | class Test(unittest.TestCase):
> | File "/usr/lib/python3/dist-packages/pyresample/test/test_plot.py", line 22, in Test
> | data = np.load(filename)['data']
> | File "/usr/lib/python3/dist-packages/numpy/lib/npyio.py", line 362, in load
> | fid = open(file, "rb")
> | FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyresample/test/test_files/ssmis_swath.npz'
The file is actually in /usr/share/python-pyresample-test/test_files/.
A solution is to symlink the test_files directory in
python{,3}-pyresample and add the -test package as a dependency.
Antonio, what do are your thoughts about resolving this issue?
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
More information about the Pkg-grass-devel
mailing list