Changeset 262:aa5ccf488680

Show
Ignore:
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
  • test.py

    r261 r262  
    4949                   freebsd5 freebsd6 freebsd7 generic irix5 irix6 linux2 
    5050                   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() 
    5153    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): 
    5755            continue 
    58         if file_name == 'test_converter.txt'
     56        if sys.platform in posixlike and (file_name in skip_under_posix)
    5957            continue 
    6058        doctest.testfile(file_name)