[Zope-Checkins] CVS: Packages/Zope/Startup/tests -
testStarter.py:1.1.2.12
Tres Seaver
tseaver at zope.com
Fri Jan 14 14:48:20 EST 2005
Update of /cvs-repository/Packages/Zope/Startup/tests
In directory cvs.zope.org:/tmp/cvs-serv16023/lib/python/Zope/Startup/tests
Modified Files:
Tag: Zope-2_7-branch
testStarter.py
Log Message:
- Collector #1661: wire up 'python-check-interval'.
=== Packages/Zope/Startup/tests/testStarter.py 1.1.2.11 => 1.1.2.12 ===
--- Packages/Zope/Startup/tests/testStarter.py:1.1.2.11 Fri Jan 30 14:17:46 2004
+++ Packages/Zope/Startup/tests/testStarter.py Fri Jan 14 14:48:20 2005
@@ -338,6 +338,22 @@
starter.unlinkPidFile()
self.failIf(os.path.exists(name))
+ def testConfigureInterpreter(self):
+ import sys
+ oldcheckinterval = sys.getcheckinterval()
+ newcheckinterval = oldcheckinterval + 1
+ conf = self.load_config_text("""
+ instancehome <<INSTANCE_HOME>>
+ python-check-interval %d
+ """ % newcheckinterval
+ )
+ try:
+ starter = ZopeStarter(conf)
+ starter.setupInterpreter()
+ self.failUnlessEqual( sys.getcheckinterval() , newcheckinterval )
+ finally:
+ sys.setcheckinterval(oldcheckinterval)
+
def testZopeRunConfigure(self):
old_config = getConfiguration()
try:
More information about the Zope-Checkins
mailing list