testing-cabal / mock

The Python mock library

Home Page:https://docs.python.org/dev/library/unittest.mock.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: No module named config

ltamaster opened this issue · comments

I am running a test using coverage on travis and I got this error:

Traceback (most recent call last):
 File "/tmp/tmp.yxT81y67iD/python/.tox/coverage/lib/python2.7/site-packages/mock/mock.py", line 1297, in patched
   arg = patching.__enter__()
 File "/tmp/tmp.yxT81y67iD/python/.tox/coverage/lib/python2.7/site-packages/mock/mock.py", line 1353, in __enter__
   self.target = self.getter()
 File "/tmp/tmp.yxT81y67iD/python/.tox/coverage/lib/python2.7/site-packages/mock/mock.py", line 1523, in <lambda>
   getter = lambda: _importer(target)
 File "/tmp/tmp.yxT81y67iD/python/.tox/coverage/lib/python2.7/site-packages/mock/mock.py", line 1206, in _importer
   thing = __import__(import_path)
ImportError: No module named config```

Any ideas?

Thanks
Luis