Changeset 308:a75ac4dd8081
- 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
| r307 |
r308 |
|
| 59 | 59 | |
|---|
| 60 | 60 | if __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() |
|---|
| 62 | 66 | |
|---|