#2 patch: make tests runnable

closed-fixed
Richard Jones
None
5
2002-05-07
2002-05-06
Anthony Baxter
No

patch adds a simple __name__ == "__main__"
bit to each test. makes life easier.

Discussion

  • Anthony Baxter
    Anthony Baxter
    2002-05-06

     
    Attachments
  • Logged In: NO

    The tests are already individually runnable -
    using the name of the test module (minus test_) as
    a command line arg to run_tests.

    Do you think this is still worthwhile?

     
  • Anthony Baxter
    Anthony Baxter
    2002-05-07

    Logged In: YES
    user_id=29957

    Well, I know that I expected to find the test
    runnable as a script. It's a pretty standard
    bit of python-fu.

     
  • Richard Jones
    Richard Jones
    2002-05-07

    • assigned_to: nobody --> richard
    • status: open --> closed-fixed