[Zope-Checkins] CVS: Packages/ZConfig/tests - testConfig.py:1.3
Fred L. Drake, Jr.
fdrake@acm.org
Sun, 13 Oct 2002 23:08:07 -0400
Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv22387
Modified Files:
testConfig.py
Log Message:
Temporary hack to avoid most of the test failures on Windows; proper fix to come tomorrow.
=== Packages/ZConfig/tests/testConfig.py 1.2 => 1.3 ===
--- Packages/ZConfig/tests/testConfig.py:1.2 Thu Oct 10 16:42:24 2002
+++ Packages/ZConfig/tests/testConfig.py Sun Oct 13 23:08:06 2002
@@ -30,8 +30,11 @@
if __name__ == "__main__":
__file__ = sys.argv[0]
-CONFIG_BASE = ("file://" + os.path.abspath(os.path.dirname(__file__))
- + "/input/")
+d = os.path.abspath(os.path.dirname(__file__)) + "/input/"
+if os.sep == "\\":
+ CONFIG_BASE = "file:" + d
+else:
+ CONFIG_BASE = "file://" + d
class TestBase(unittest.TestCase):