Hi Chris!

I'm not a Windows user, but I guess something in your Windows configuration
is making the Python file open in VSCode rather than get run by the Python
interpreter. Probably installing VSCode after Python reconfigured Windows
to do this.

The first line of runtests.py is a shebang:
https://github.com/django/django/blob/master/tests/runtests.py#L1 . This
tells unix systems how to run the file, which is why ./runtests.py works
there. I don't believe Windows has such a feature.

Probably the documentation for should be updated to show "python
runtests.py" as you suggest. This will show for both unix and windows,
since they are sourced from the same line (the "windows" mode is just some
different formattting). That line is:
https://github.com/django/django/blob/master/docs/intro/contributing.txt#L208

A good first contribution - if you find anything else problematic with the
tutorial on Windows, add it to your PR!

Thanks,

Adam

On Thu, 18 Apr 2019 at 16:02, Chris Wedgwood <[email protected]> wrote:

> Hi
>
> I am running django's test suite for the first time on windows as part of
> the onboarding tutorial(
> https://docs.djangoproject.com/en/dev/intro/contributing/)
>  and one of the instructions is to run
>
> ...\> runtests.py
>
>  when I run this the file is opened in vscode and I dont see any output. It 
> may be running in the background.
>
> When I use
>
> ...\> python runtests.py
>
> It works.
>
> Do I need to configure something in windows for it to work without the python 
> prefix?
>
> Or should the python prefix be added to the docs?
>
> Thanks
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/302f6a44-cb02-40fc-825b-be0dd2922b3f%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/302f6a44-cb02-40fc-825b-be0dd2922b3f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM2tOo%3DqRnDHP%3DPhw10f7CHuW%3D8EFdGk6uWtGLtFS2dqJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to