By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Pausing for Python Interpreter error messages...

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.