[Zope3-checkins] SVN: Zope3/trunk/src/zope/tal/driver.py Make zope.tal tests pass on Windows.

Marius Gedminas marius at pov.lt
Thu Jul 1 05:02:08 EDT 2004


Log message for revision 26013:
Make zope.tal tests pass on Windows.




-=-
Modified: Zope3/trunk/src/zope/tal/driver.py
===================================================================
--- Zope3/trunk/src/zope/tal/driver.py	2004-07-01 06:24:44 UTC (rev 26012)
+++ Zope3/trunk/src/zope/tal/driver.py	2004-07-01 09:02:08 UTC (rev 26013)
@@ -190,6 +190,7 @@
     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))



More information about the Zope3-Checkins mailing list