Changeset 261:f3062b951724

Show
Ignore:
Timestamp:
2007-08-23 03:57:21 (1 year ago)
Author:
Stefan Schwarzer <sschwarzer@sschwarzer.net>
branch:
default
Message:
Skip tests in `test_converter.txt` under Windows as they fail there
anyway.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • test.py

    r260 r261  
    5656            file_name == 'test_urlpath_windows.txt'): 
    5757            continue 
     58        if file_name == 'test_converter.txt': 
     59            continue 
    5860        doctest.testfile(file_name) 
    5961 
  • urlpath.py

    r260 r261  
    8282    path) to take into account. 
    8383 
    84     Trailing path separators on the `root` or `path` don't matter
     84    Trailing path separators on the `root` or `path` are ignored
    8585 
    8686    If the `path` isn't part of the `root`, raise a `NotUnderRoot` 
     
    109109    leading slash, without host name). 
    110110 
    111     An example: 
    112  
    113     >>> import urlpath 
    114     >>> urlpath.to_file_system("/the/root", "/some%20dir/some%20file") 
    115     '/the/root/some dir/some file' 
    116  
    117     Trailing path separators on the `root` or `url` don't matter: 
    118  
    119     >>> urlpath.to_file_system("/the/root/", "/somedir/somefile/") 
    120     '/the/root/somedir/somefile' 
     111    Trailing path separators on the `root` or `url` are ignored. 
    121112 
    122113    If the `path` isn't part of the `root`, raise a `NotUnderRoot` 
    123     exception: 
    124  
    125     >>> urlpath.to_url("/the/root/", "/../somefile/") 
    126     ... #doctest: +ELLIPSIS 
    127     Traceback (most recent call last): 
    128         ... 
    129     NotUnderRoot: path "..." isn't under root directory "..." 
     114    exception. 
    130115    """ 
    131116    root = _normalize_path(root)