changeset 522:60bf433647e7

test_util: fix Windows test URLs
author Patrick Mezard <pmezard@gmail.com>
date Wed, 20 Jan 2010 20:50:59 +0100
parents 839734dfb5c7
children fa7aab230f1d
files tests/test_util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -88,7 +88,7 @@ def filtermanifest(manifest):
                   manifest)
 
 def fileurl(path):
-    path = os.path.abspath(path)
+    path = os.path.abspath(path).replace(os.sep, '/')
     drive, path = os.path.splitdrive(path)
     if drive:
         drive = '/' + drive