python - Unable to run Django's unit test -


when typed python manage.py test run unit testcases, prompted error messages below:

traceback (most recent call last):

...

  django.test.utils import contextlist   file "d:\dev\py27\lib\site-packages\django\test\utils.py", line 8, in <module>    unittest import skipif, skipunless   importerror: cannot import name skipif 

when run unittest alone, works fine, running unittest in django failed. unittest should built-in library of python. please let me know how fix issue.

thanks.

use dir(unittest) verify skipif etc included in unittest. in case skipif missing, , install python interpreter work.

i tried several versions of python on windows , miss skipif.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -