[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/rdb/tests/test_gadflyrootdirective.py
Fixed a silly test that made bad assumptions about file
separators and
Jim Fulton
jim at zope.com
Fri Jul 9 17:28:16 EDT 2004
Log message for revision 26373:
Fixed a silly test that made bad assumptions about file separators and
directory layout.
-=-
Modified: Zope3/trunk/src/zope/app/rdb/tests/test_gadflyrootdirective.py
===================================================================
--- Zope3/trunk/src/zope/app/rdb/tests/test_gadflyrootdirective.py 2004-07-09 21:19:51 UTC (rev 26372)
+++ Zope3/trunk/src/zope/app/rdb/tests/test_gadflyrootdirective.py 2004-07-09 21:28:16 UTC (rev 26373)
@@ -15,6 +15,8 @@
$Id: test_directives.py 25177 2004-06-02 13:17:31Z jim $
"""
+
+import os
import unittest
from zope.configuration import xmlconfig
@@ -28,7 +30,10 @@
self.assertEqual(getGadflyRoot(), 'gadfly')
self.context = xmlconfig.file("gadflyroot.zcml", zope.app.rdb.tests)
- self.assert_('src/zope/app/rdb/tests/test/dir' in getGadflyRoot())
+ self.assert_(
+ os.path.join('zope', 'app', 'rdb', 'tests', 'test', 'dir')
+ in getGadflyRoot()
+ )
def test_suite():
More information about the Zope3-Checkins
mailing list