Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#27390 closed Bug (invalid)

need modify `runtest.py` parts of the document

Reported by: Jeho, Sung Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords: runtest.py
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

see intro/contributing/#running-django-s-test-suite-for-the-first-time

Now we are ready to run the test suite. If you’re using GNU/Linux, Mac OS X or some other flavor of Unix, run:
$ ./runtests.py

If follow this command, then you'll see:

(django-devel) jehos@class:/tmp/django/tests⟫ ./runtests.py
Traceback (most recent call last):
  File "./runtests.py", line 22, in <module>
    from django.utils.deprecation import (
ImportError: cannot import name 'RemovedInDjango21Warning'

It should be changed as follows.

$ PYTHONPATH=..:$PYTHONPATH ./runtests.py

Change History (2)

comment:1 Changed 3 years ago by Tim Graham

Resolution: invalid
Status: newclosed

Based on the error, it looks like you missed this step: pip install -e /path/to/your/local/clone/django/.

comment:2 in reply to:  1 Changed 3 years ago by Jeho, Sung

Replying to Tim Graham:

Based on the error, it looks like you missed this step: pip install -e /path/to/your/local/clone/django/.

sorry, i missing that sequence.
thank you.

Last edited 3 years ago by Jeho, Sung (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top