[Python-Dev] [Python-checkins] devguide: Start a doc on running and writing unit tests.

Antoine Pitrou solipsis at pitrou.net
Wed Jan 5 23:57:34 CET 2011


On Wed, 05 Jan 2011 17:43:32 -0500
Terry Reedy <tjreedy at udel.edu> wrote:
> 
> Not on Windows.
> C:\Programs\Python32>./python -m test
> '.' is not recognized as an internal or external command,
> operable program or batch file.
> 
> python -m test
>   works (until it failed, separate issue).

This will not run the right interpreter, unless this is an installed
build.
You must use:
- "PCbuild\python_d.exe" in debug mode
- "PCbuild\python.exe" in release mode
- "PCbuild\amd64\python_d.exe" in 64-bit debug mode
- "PCbuild\amd64\python.exe" in 64-bit release mode

> I would like to know, insofar as possible, how to run tests from the 
> interpreter prompt (or IDLE simulation thereof)

You can't. There is no such supported thing.

Regards

Antoine.




More information about the Python-Dev mailing list