summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2004-07-01 09:02:08 +0000
committerMarius Gedminas <marius@gedmin.as>2004-07-01 09:02:08 +0000
commit25b05199aedb746bd857181bc50b15b741fd2c46 (patch)
treea71bbe016565399f7aad4d1cd994312db63a54d1
parent09bae88bebf21770f0ed74d164aa81c6764bf904 (diff)
downloadzope-tal-25b05199aedb746bd857181bc50b15b741fd2c46.tar.gz
Make zope.tal tests pass on Windows.
-rw-r--r--driver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver.py b/driver.py
index 1dbac8e..2de5592 100644
--- a/driver.py
+++ b/driver.py
@@ -190,6 +190,7 @@ def compilefile(file, mode=None):
prefix = os.path.dirname(os.path.abspath(__file__)) + os.path.sep
if filename.startswith(prefix):
filename = filename[len(prefix):]
+ filename = filename.replace(os.sep, '/') # test files expect slashes
if mode == "html":
from zope.tal.htmltalparser import HTMLTALParser
p = HTMLTALParser(gen=TALGenerator(source_file=filename, xml=0))