[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/tests/test_schema.py Adjust schema loading test to new skel location
Hanno Schlichting
plone at hannosch.info
Fri Feb 20 08:16:04 EST 2009
Log message for revision 96814:
Adjust schema loading test to new skel location
Changed:
U Zope/trunk/src/Zope2/Startup/tests/test_schema.py
-=-
Modified: Zope/trunk/src/Zope2/Startup/tests/test_schema.py
===================================================================
--- Zope/trunk/src/Zope2/Startup/tests/test_schema.py 2009-02-20 11:25:10 UTC (rev 96813)
+++ Zope/trunk/src/Zope2/Startup/tests/test_schema.py 2009-02-20 13:16:04 UTC (rev 96814)
@@ -71,7 +71,9 @@
def test_load_config_template(self):
schema = self.schema
cfg = getConfiguration()
- fn = os.path.join(cfg.zopehome, "skel", "etc", "zope.conf.in")
+ import Zope2.utilities
+ base = os.path.dirname(Zope2.utilities.__file__)
+ fn = os.path.join(base, "skel", "etc", "zope.conf.in")
f = open(fn)
text = f.read()
f.close()
More information about the Zope-Checkins
mailing list