Opened 6 years ago

Closed 6 years ago

#29923 closed Bug (invalid)

Quickstart code bit missing python command

Reported by: Steven Erredge Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

Code bit for running all unit tests under the Quickstart header is missing the python command on line 5

What it is
1 $ git clone git@…:YourGitHubName/django.git django-repo
2 $ cd django-repo/tests
3 $ pip install -e ..
4 $ pip install -r requirements/py3.txt
5 $ ./runtests.py

What it should be
1 $ git clone git@…:YourGitHubName/django.git django-repo
2 $ cd django-repo/tests
3 $ pip install -e ..
4 $ pip install -r requirements/py3.txt
5 $ python ./runtests.py

Here is the link --> https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-unit-tests

Change History (2)

comment:1 by Tim Graham, 6 years ago

It should work fine without python. Does it not work for you? Are you on Windows?

comment:2 by Carlton Gibson, 6 years ago

Resolution: invalid
Status: newclosed

I think this is invalid.

Assuming we're on Windows, and that there's an active venv (as per the instructions about these commands ...create and activate a virtual environment...) then the runtests.py command works without specifying python.

If you're using cmd then you can't use ./ but both .\runtests.py and just runtests.py work.

The note below says to use Git Bash on Windows, where ./runtests.py works as expected.

Steven, if this is missing something please reply: very happy to reopen if there is a mistake we can pin down.

Note: See TracTickets for help on using tickets.
Back to Top