Pausing for Python Interpreter error messages...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • redefined.horizons@gmail.com

    #1

    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.

  • Bruno Desthuilliers

    #2
    Re: Pausing for Python Interpreter error messages...

    redefined.horiz ons@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:
    Source code: Lib/unittest/__init__.py(If you are already familiar with the basic concepts of testing, you might want to skip to the list of assert methods.) The unittest unit testing framework was ...

    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.

    Comment

    • redefined.horizons@gmail.com

      #3
      Re: Pausing for Python Interpreter error messages...

      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:
      redefined.horiz ons@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:
      Source code: Lib/unittest/__init__.py(If you are already familiar with the basic concepts of testing, you might want to skip to the list of assert methods.) The unittest unit testing framework was ...

      >
      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.

      Comment

      Working...