I took the plunge to upgrade the virtual environment for our project from Django 1.6.5 to Django 1.7.
When I use the menu to run Tools | Run manage.py Task then select "test" the tests don't run, with the message:
/Users/jamesk/upharm27/lib/python2.7/site-packages/django/test/_doctest.py:62: RemovedInDjango18Warning: The django.test._doctest module is deprecated; use the doctest module from the Python standard library instead.
To figure out what was causing this, I put the following lines in django.test._doctest, immediately before the warning command:
It shows (in part) the following:
File "/Applications/PyCharm.app/helpers/pycharm/django_test_runner.py", line 30, in <module>
from django.test.simple import DjangoTestSuiteRunner
File "/Users/jamesk/upharm27/lib/python2.7/site-packages/django/test/simple.py", line 13, in <module>
from django.test import _doctest as doctest
File "/Users/jamesk/upharm27/lib/python2.7/site-packages/django/test/_doctest.py", line 57, in <module>
Which I interpret as PyCharm's django_test_runner.py imporint django.test.simple, which triggers the deprecation warning.
What would be recommended here? It would appear to my untrained eyes that PyCharm's helper script is out of date for Django 1.7, but I'm not entirely sure.
OS: OS X 10.9.4
Python: 2.7.6 in virtual environment.