# HG changeset patch # User Patrick Mezard # Date 1345996198 -7200 # Node ID 847953806c777aab4923175793dbd2c8e6397c63 # Parent 6b7ac659c85574bb819650848af501c95b825baa 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. diff --git a/tests/test_util.py b/tests/test_util.py --- 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