[Zope3-checkins] CVS: Zope3/lib/python/Zope/Configuration/tests - testXML.py:1.4
Jim Fulton
jim@zope.com
Thu, 17 Oct 2002 09:32:28 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv20668/lib/python/Zope/Configuration/tests
Modified Files:
testXML.py
Log Message:
Fixed a test that was opening the main database. This was bad, as the
tests should not touch this. Also, you couldn't run the tests while
the application was running.
Fixed a number of tests that created temporary files and didn't clean
them up. *Hopefully*, there aren't any leaked files that would cause
this to fail on windows.
=== Zope3/lib/python/Zope/Configuration/tests/testXML.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/Configuration/tests/testXML.py:1.3 Sun Jun 23 12:20:22 2002
+++ Zope3/lib/python/Zope/Configuration/tests/testXML.py Thu Oct 17 09:31:58 2002
@@ -129,6 +129,8 @@
from Zope.Configuration.xmlconfig import XMLConfig
x = XMLConfig(name)
x()
+ import os
+ os.remove(name)
def testIncludeNoPackageAndIncluderNoPackage(self):
from tempfile import mktemp
@@ -149,6 +151,9 @@
from Zope.Configuration.xmlconfig import XMLConfig
x = XMLConfig(full_name)
x()
+ import os
+ os.remove(full_name)
+ os.remove(full_name1)
def test_suite():