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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -