Commit 5cc7ab63 authored by Fred Drake's avatar Fred Drake

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.
parent bb740c92
......@@ -9,7 +9,7 @@ from Products.PageTemplates.PageTemplateFile import PageTemplateFile
class TypeSniffingTestCase(unittest.TestCase):
TEMPFILENAME = tempfile.mktemp()
TEMPFILENAME = tempfile.mktemp(".zpt")
def tearDown(self):
if os.path.exists(self.TEMPFILENAME):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment