[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/tests - test_ptfile.py:1.2

Fred L. Drake, Jr. fred@zope.com
Tue, 22 Apr 2003 12:16:37 -0400


Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/tests
In directory cvs.zope.org:/tmp/cvs-serv21369

Modified Files:
	test_ptfile.py 
Log Message:
Make sure we always use a .zpt suffix for the temp file, since
PageTemplateFile.__init__() does some weird magic.
Without this, the sniffer tests failed on Windows.


=== Zope/lib/python/Products/PageTemplates/tests/test_ptfile.py 1.1 => 1.2 ===
--- Zope/lib/python/Products/PageTemplates/tests/test_ptfile.py:1.1	Fri Mar 21 14:22:00 2003
+++ Zope/lib/python/Products/PageTemplates/tests/test_ptfile.py	Tue Apr 22 12:16:36 2003
@@ -9,7 +9,7 @@
 
 class TypeSniffingTestCase(unittest.TestCase):
 
-    TEMPFILENAME = tempfile.mktemp()
+    TEMPFILENAME = tempfile.mktemp(".zpt")
 
     def tearDown(self):
         if os.path.exists(self.TEMPFILENAME):