Changeset 262:aa5ccf488680
- Timestamp:
- 2007-08-23 04:00:40
(1 year ago)
- Author:
- Stefan Schwarzer <sschwarzer@sschwarzer.net>
- branch:
- default
- Message:
Improved Posix/Windows exclusion handling.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r261 |
r262 |
|
| 49 | 49 | freebsd5 freebsd6 freebsd7 generic irix5 irix6 linux2 |
|---|
| 50 | 50 | netbsd1 next3 os2emx riscos sunos5 unixware7""".split() |
|---|
| | 51 | skip_under_posix = "test_urlpath_windows.txt".split() |
|---|
| | 52 | skip_under_windows = "test_urlpath_posix.txt test_converter.txt".split() |
|---|
| 51 | 53 | for file_name in glob.glob("test_*.txt"): |
|---|
| 52 | | # this should at least run on Posix and Windows |
|---|
| 53 | | if (sys.platform.startswith('win') and |
|---|
| 54 | | file_name == 'test_urlpath_posix.txt') or \ |
|---|
| 55 | | (sys.platform in posixlike and |
|---|
| 56 | | file_name == 'test_urlpath_windows.txt'): |
|---|
| | 54 | if sys.platform.startswith('win') and (file_name in skip_under_windows): |
|---|
| 57 | 55 | continue |
|---|
| 58 | | if file_name == 'test_converter.txt': |
|---|
| | 56 | if sys.platform in posixlike and (file_name in skip_under_posix): |
|---|
| 59 | 57 | continue |
|---|
| 60 | 58 | doctest.testfile(file_name) |
|---|