[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/rdb/tests/test_gadflyrootdirective.py
Merged from trunk 26373:
Jim Fulton
jim at zope.com
Fri Jul 9 17:42:04 EDT 2004
Log message for revision 26374:
Merged from trunk 26373:
Fixed a silly test that made bad assumptions about file separators and
directory layout.
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/rdb/tests/test_gadflyrootdirective.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/rdb/tests/test_gadflyrootdirective.py 2004-07-09 21:28:16 UTC (rev 26373)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/rdb/tests/test_gadflyrootdirective.py 2004-07-09 21:42:04 UTC (rev 26374)
@@ -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