472,143 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

Pausing for Python Interpreter error messages...

I've written a few classes that I have been testing in IDLE. However,
every time I make a change to the classes based on the testing I have
to walk through all he steps of preparing the classes for testing
again.

So I wrote a script that does all the set-up work for me. The only
problem is when I run this script using the Python interpreter I can't
get the command prompt to stay up long enough for me to read the
message.

How do I get the command prompt to stay up? Is there a way to run my
script and view the error message in IDLE?

Thanks for the help.

Scott Huey

P.S. - I'm using Windows XP with the latest Python 2.3.

Jan 6 '07 #1
2 1521
re****************@gmail.com a écrit :
I've written a few classes that I have been testing in IDLE. However,
every time I make a change to the classes based on the testing I have
to walk through all he steps of preparing the classes for testing
again.

So I wrote a script that does all the set-up work for me.
You may want to have a look at the unittest module then:
http://docs.python.org/lib/module-unittest.html
The only
problem is when I run this script using the Python interpreter I can't
get the command prompt to stay up long enough for me to read the
message.

How do I get the command prompt to stay up?
first open the "command prompt", then launch your script from the
command prompt.
Is there a way to run my
script and view the error message in IDLE?
menu run->run module, or just hit the F5 key.
Thanks for the help.

Scott Huey

P.S. - I'm using Windows XP with the latest Python 2.3.
Python 2.3 is years old. Latest is 2.5.
Jan 6 '07 #2
Thanks Bruno.

I'll get the 2.5 python install, and I'm checking out the unit testing
module that you mentioned.

Scott Huey
Bruno Desthuilliers wrote:
re****************@gmail.com a écrit :
I've written a few classes that I have been testing in IDLE. However,
every time I make a change to the classes based on the testing I have
to walk through all he steps of preparing the classes for testing
again.

So I wrote a script that does all the set-up work for me.

You may want to have a look at the unittest module then:
http://docs.python.org/lib/module-unittest.html
The only
problem is when I run this script using the Python interpreter I can't
get the command prompt to stay up long enough for me to read the
message.

How do I get the command prompt to stay up?

first open the "command prompt", then launch your script from the
command prompt.
Is there a way to run my
script and view the error message in IDLE?

menu run->run module, or just hit the F5 key.
Thanks for the help.

Scott Huey

P.S. - I'm using Windows XP with the latest Python 2.3.
Python 2.3 is years old. Latest is 2.5.
Jan 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Juho Saarikko | last post: by
6 posts views Thread by Avi Berkovich | last post: by
reply views Thread by Kurt B. Kaiser | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.