diff tests/test_util.py @ 522:60bf433647e7

test_util: fix Windows test URLs
author Patrick Mezard <pmezard@gmail.com>
date Wed, 20 Jan 2010 20:50:59 +0100
parents f089f46729ee
children 2be9f14bd23f
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