[Error] While running the tests
Hello,
I am trying to package xsocs at the moment for debian. When I run a build, the build works fine until the tests arrive.
In fact the test that fails is here :
======================================================================
ERROR: xsocs.process.test (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: xsocs.process.test
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/loader.py", line 470, in _find_test_path
package = self._get_module_from_name(name)
File "/usr/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/experiences/diffabs/mariea/Debian/xsocs/xsocs/.pybuild/cpython3_3.7/build/xsocs/process/test/__init__.py", line 31, in <module>
from .test_parser import suite as test_parser_suite
File "/home/experiences/diffabs/mariea/Debian/xsocs/xsocs/.pybuild/cpython3_3.7/build/xsocs/process/test/test_parser.py", line 39, in <module>
from xsocs.test.utils import test_resources
File "/home/experiences/diffabs/mariea/Debian/xsocs/xsocs/.pybuild/cpython3_3.7/build/xsocs/test/__init__.py", line 42, in <module>
from ..process.test import suite as test_util_suite
ImportError: cannot import name 'suite' from 'xsocs.process.test' (/home/experiences/diffabs/mariea/Debian/xsocs/xsocs/.pybuild/cpython3_3.7/build/xsocs/process/test/__init__.py)
I don't get why the test fails because I can find the init.py in the good repertory.