Benji York wrote:
Yep, that looks like it. Either I'll make my first commit to Zope 2
ever :) or if you want to, you can change it to something like this:
import tempfile
import os
fname = 'import_export.xml'
tempdir = tempfile.mkdtemp()
try:
ostream = open(fname, 'wb')
try:
d
Chris Withers wrote:
I suspect the following pattern needs to be changed:
ostream = tempfile.NamedTemporaryFile(suffix='.xml')
try:
data = exportXML(connection, oid, ostream)
ostream.flush()
sub._importObjectFromFile(ostream.name, 0, 0)
Benji York wrote:
2000--Zope---branches---2.9--2.4\build\lib\python\OFS\tests\test_XMLExportImport.py",
I suspect the following pattern needs to be changed:
ostream = tempfile.NamedTemporaryFile(suffix='.xml')
try:
data = exportXML(connection, oid, ostream)
The BuildBot (http://buildbot.zope.org) is getting these test failures
for the trunk on Windows:
Error in test test_OFS_ObjectManager__importObjectFromFile_xml
(OFS.tests.test_XMLExportImport.XMLExportImportTests)
Traceback (most recent call last):
File "c:\python24\lib\unittest.py", line 26