Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#27390 closed Bug (invalid)

need modify `runtest.py` parts of the document

Reported by: Jeho, Sung Owned by: nobody
Component: Documentation Version: dev
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 by Tim Graham, 7 years ago

Resolution: invalid
Status: newclosed

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

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

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 7 years ago by Jeho, Sung (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top