Mercurial > hgsubversion
diff tests/test_util.py @ 923:847953806c77
test_util: make repourl() return upper-cased drive letters
The SWIG bindings return local svn URLs with upper-case drive letters.
Doing the same in repourl() makes the svn info tests URLs match on
Windows.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 26 Aug 2012 17:49:58 +0200 |
parents | 6918f60d0e28 |
children | 5bacb9c63e3e |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -146,7 +146,10 @@ def fileurl(path): path = os.path.abspath(path).replace(os.sep, '/') drive, path = os.path.splitdrive(path) if drive: - drive = '/' + drive + # In svn 1.7, the swig svn wrapper returns local svn URLs + # with an uppercase drive letter, try to match that to + # simplify svn info tests. + drive = '/' + drive.upper() url = 'file://%s%s' % (drive, path) return url