Ben, thanks for your reply! On Fri, May 21, 2021 at 05:36:17PM +0200, Ben Greiner wrote:
- check whether the config file for pytest (setup.cfg, pytest.ini, tox.ini, it is reported in the header) modify the import mode. - Check whether conftest.py or any other code tamper with sys.path.
As far as I quickly checked, that is not the case.
* try different pytest --import-mode parameters * Nuclear option: rename/remove the bitstruct directory in BUILD, so that the bitstruct module is really imported from BUILDROOT
It seems that's it: %check mv bitstruct bitstruct.orig %pytest_arch This works. Also %check %pytest_arch --import-mode=append works (as well as --import-mode=importlib). See home:pgajdos:python/python-bitstruct What is preferred solution for the spec file? Petr -- Have a lot of fun!