<div dir="ltr"><div>Hi,</div><div><br></div><div>I have some test classes that run unittests and have use mock patch object - I can run them ok from the command line - but when I run them via coverage I get </div><div><br></div><div>import unittest.mock</div><div>ImportError: No module named mock</div><div><br></div><div>I am running the test class file which has a unittest.main in it.</div><div><br></div><div>I am running it from one directory up from the source (the source is in a subdir called &#39;docker&#39;)</div><div><br></div><div>so <br></div><div>&#39;python docker/test_svn_checker_writer.py &#39;</div><div><br></div><div>runs the tests ok</div><div><br></div><div>but</div><div>&#39;coverage run docker/test_svn_checker_writer.py&#39; - fails with the import error.  This is on ubunto btw.<br></div><div><br></div><div>Can anyone help?<br></div><div><br></div><div>Thanks</div><div><br></div><div>Joe<br></div><div><br></div><div><br></div></div>