Changeset 308:a75ac4dd8081

Show
Ignore:
Timestamp:
2007-09-01 19:25:02 (1 year ago)
Author:
Stefan Schwarzer <sschwarzer@sschwarzer.net>
branch:
default
Message:
Allow to test individual files.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • test.py

    r307 r308  
    5959 
    6060if __name__ == '__main__': 
    61     main() 
     61    # execute just the single test file if given on the command line 
     62    if len(sys.argv) == 2: 
     63        doctest.testfile(sys.argv[1]) 
     64    else: 
     65        main() 
    6266