[Zope-Checkins] CVS: Zope/lib/python/ZServer/tests - test_config.py:1.1.2.5
Fred L. Drake, Jr.
fred@zope.com
Tue, 18 Mar 2003 13:24:15 -0500
Update of /cvs-repository/Zope/lib/python/ZServer/tests
In directory cvs.zope.org:/tmp/cvs-serv945
Modified Files:
Tag: new-install-branch
test_config.py
Log Message:
- remove unused import of ZServer
- use cStringIO instead of StringIO
- only generate one temporary filename
=== Zope/lib/python/ZServer/tests/test_config.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/ZServer/tests/test_config.py:1.1.2.4 Thu Mar 6 12:20:49 2003
+++ Zope/lib/python/ZServer/tests/test_config.py Tue Mar 18 13:24:14 2003
@@ -14,16 +14,18 @@
"""Test the ZServer configuration machinery."""
+import cStringIO as StringIO
import os
-import StringIO
import tempfile
import unittest
import ZConfig
-import ZServer
import ZServer.datatypes
+TEMPFILENAME = tempfile.mktemp()
+
+
class ZServerConfigurationTestCase(unittest.TestCase):
schema = None
@@ -45,7 +47,7 @@
return conf.servers[0]
def load_unix_domain_factory(self, text):
- fn = tempfile.mktemp()
+ fn = TEMPFILENAME
f = open(fn, 'w')
f.close()
try: