[Tutor] Do not understand why test is running.
Peter Otten
__peter__ at web.de
Sat Aug 22 10:18:45 CEST 2015
boB Stepp wrote:
> In the cold light of morning, I see that in this invocation, the path
> is wrong. But even if I correct it, I get the same results:
>
> e:\Projects\mcm>py -m unittest ./test/db/test_manager.py
[...]
> ValueError: Empty module name
Make sure that there are files
./test/__init__.py
./test/db/__init__.py
and then try
py -m unittest test.db.test_manager
> e:\Projects\mcm>py ./test/db/test_manager.py
> Traceback (most recent call last):
> File "./test/db/test_manager.py", line 16, in <module>
> import mcm.db.manager
> ImportError: No module named 'mcm'
Make sure the parent directory of the mcm package (I believe this is
E:\Projects\mcm) is in your PYTHONPATH, then try again.
More information about the Tutor
mailing list