@Richard Are you using Python 3? I have observed the same when using Python 3, it is more "strict" (or whatever it should be called) when it comes to finding modules. Does it work using Python 2 for you?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I"m getting the following error running the misra.py test code. Using HEAD.
________ ERROR at setup of test_loadRuleTexts_structure _________
addons/test/test-misra.py:59:
addons/misra.py:18: ModuleNotFoundError
I am not sure how you should run it. It does not seem that it's run by travis.
It seems to work for me:
~/cppcheck$ python -m pytest addons/test/test-misra.py
==================================================================================== test session starts =====================================================================================
platform linux2 -- Python 2.7.13, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: /home/danielm/cppcheck, inifile:
collected 7 items
addons/test/test-misra.py .......
================================================================================== 7 passed in 0.82 seconds ==================================================================================
@Richard Are you using Python 3? I have observed the same when using Python 3, it is more "strict" (or whatever it should be called) when it comes to finding modules. Does it work using Python 2 for you?
You beat me to it. Yes that is the problem. I was using python3. If I use python2 it works.
It it supposed to work with python3?